From cd153e66769f214e32d298fdc2a2c3f8a59e1c8e Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Mon, 20 Nov 2023 15:46:41 -0500 Subject: [PATCH] ci: Upload stacker binary (#556) Uploading a c-i built binary can make it easier for users to test. Signed-off-by: Scott Moser --- .github/workflows/build.yaml | 8 ++++++++ .github/workflows/coverage.yaml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 316bd7de..70a11451 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -84,6 +84,14 @@ jobs: REGISTRY_URL: localhost:5000 ZOT_HOST: localhost ZOT_PORT: 8080 + - name: Upload artifacts + uses: actions/upload-artifact@v3 + if: ${{ matrix.privilege-level == 'priv' }} + with: + # if there is more than 1 go-version, we would need to account for that here. + name: binary + path: stacker + if-no-files-found: error - name: Show disk usage before running the tests if: always() uses: ./.github/actions/show-disk-usage diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 3df6c81d..5327e531 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -91,6 +91,14 @@ jobs: REGISTRY_URL: localhost:5000 ZOT_HOST: localhost ZOT_PORT: 8080 + - name: Upload artifacts + uses: actions/upload-artifact@v3 + if: ${{ matrix.privilege-level == 'priv' }} + with: + # if there is more than 1 go-version, we would need to account for that here. + name: binary-cov + path: stacker + if-no-files-found: error - name: Show disk usage after running the tests if: always() uses: ./.github/actions/show-disk-usage