From 02191be00b07c71b5ade7d15a54c453b4224612f Mon Sep 17 00:00:00 2001 From: Chirayu Kapoor Date: Fri, 25 Oct 2024 13:27:37 +0530 Subject: [PATCH] Update the workflow to build rke-etcd-backup binary in build-and-push job --- .github/workflows/workflow.yaml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 38931828..d647ea4d 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -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: @@ -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