File tree Expand file tree Collapse file tree 2 files changed +77
-0
lines changed Expand file tree Collapse file tree 2 files changed +77
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Benchmark - Release rp-storage-tool
3+ on :
4+ workflow_dispatch : {}
5+ push : {}
6+
7+ permissions :
8+ id-token : write
9+ contents : read
10+
11+ jobs :
12+ release-rp-storage-tool-docker :
13+ name : (Docker) Release - ${{ matrix.platform.release_for }}
14+ strategy :
15+ matrix :
16+ platform :
17+ - release_for : linux-amd64
18+ os : ubuntu-latest
19+ - release_for : linux-arm64
20+ os : ubuntu-latest-2-arm64
21+ runs-on : ${{ matrix.platform.os }}
22+ steps :
23+ - uses : actions/checkout@v4
24+ with :
25+ submodules : recursive
26+ - name : Build binary
27+ run : |
28+ export DOCKER_BUILDKIT=1
29+ docker build -f ./upstream/tests/docker/Dockerfile \
30+ -t rp-storage-tool \
31+ --build-arg BUILDKIT_INLINE_CACHE=1 \
32+ --cache-from redpandadata/redpanda-test-node:cache-amd64 \
33+ --cache-from redpandadata/redpanda-test-node:cache-arm64 \
34+ --target rp-storage-tool . \
35+ --load
36+
37+ release-rp-storage-tool-depot :
38+ name : (Depot) Release - ${{ matrix.platform.release_for }}
39+ runs-on : depot-ubuntu-latest
40+ steps :
41+ - uses : actions/checkout@v4
42+ with :
43+ submodules : recursive
44+ - uses : depot/setup-action@v1
45+ - name : Build binary
46+ run : |
47+ depot build --project zp2mb0bchx
48+ -f ./upstream/tests/docker/Dockerfile \
49+ -t rp-storage-tool \
50+ --target rp-storage-tool . \
51+ --load
Original file line number Diff line number Diff line change 1+ name : Sync
2+ on :
3+ workflow_dispatch : {}
4+ schedule :
5+ - cron : " */10 * * * *"
6+
7+ jobs :
8+ sync :
9+ name : Sync With Upstream
10+ runs-on : ubuntu-20.04
11+ steps :
12+ - uses : actions/checkout@v3
13+ with :
14+ fetch-depth : 0
15+ token : ${{ secrets.BOT_PUBLIC_GITHUB_TOKEN }}
16+ - run : |
17+ git config --global user.name "depot-bot"
18+ git config --global user.email "71396760+depot-bot@users.noreply.github.com"
19+ git submodule init
20+ git submodule update --remote --merge
21+ export UPSTREAM="$(cd upstream && git remote get-url origin)"
22+ export COMMIT_SHA="$(cd upstream && git rev-parse HEAD)"
23+ git commit -am "Update upstream to ${UPSTREAM}/commit/${COMMIT_SHA}" || echo "No changes"
24+ git push origin main
25+ env:
26+ BOT_PUBLIC_GITHUB_TOKEN: ${{ secrets.BOT_PUBLIC_GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments