Skip to content

Commit

Permalink
Merge pull request #215 from chiukapoor/fix-arch-arm64
Browse files Browse the repository at this point in the history
Update the workflow to build `rke-etcd-backup` binary in `build-and-push` job
  • Loading branch information
chiukapoor authored Oct 25, 2024
2 parents c3ac33a + 02191be commit a6a1f6c
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@ jobs:
- name: Build
run: |
./scripts/ci
- name: Upload rke-etcd-backup artifact
if: github.event_name == 'push' && github.ref_type == 'tag'
uses: actions/upload-artifact@v4
with:
name: rke-etcd-backup-${{ github.run_number }}-${{ github.run_attempt }}
path: bin/rke-etcd-backup
if-no-files-found: error
retention-days: 1
build-and-push:
permissions:
Expand All @@ -58,13 +50,16 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download rke-etcd-backup artifact
uses: actions/download-artifact@v4
with:
name: rke-etcd-backup-${{ github.run_number }}-${{ github.run_attempt }}
path: .
- name: Setup Go
uses: actions/setup-go@v5
- name: Build
run: |
./scripts/build
env:
GOARCH: ${{ matrix.arch }}
- name: Fix permissions
run: |
mv bin/rke-etcd-backup .
chmod 755 rke-etcd-backup
- name: Docker meta
id: meta
Expand Down

0 comments on commit a6a1f6c

Please sign in to comment.