From 399e42e0d2de8ce1cdc83608a1397719a67570bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20=C5=9Awi=C4=99cki?= Date: Wed, 27 Apr 2022 10:21:52 +0200 Subject: [PATCH] fix(github/push): Fix notarization of binaries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `binaries` job must be a direct requirement for `notarize-binaries` one in order to read its output as a job matrix. Signed-off-by: Bartłomiej Święcki --- .github/workflows/push.yml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index d37da4d6e6..4891f0a5a6 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -40,7 +40,9 @@ jobs: binaries: name: Build binaries and notarize sources - needs: [ gosec, old-go ] + needs: + - gosec + - old-go runs-on: ubuntu-latest env: JOB_NAME: ${{ github.job }} @@ -72,7 +74,7 @@ jobs: binaries-quick-test: name: Quick test of compiled binaries - needs: [ binaries ] + needs: binaries strategy: matrix: include: @@ -173,7 +175,10 @@ jobs: notarize-binaries: name: Notarize binaries - needs: [ binaries-quick-test, stress-tests ] + needs: + - binaries + - binaries-quick-test + - stress-tests runs-on: ubuntu-latest strategy: matrix: ${{fromJson(needs.binaries.outputs.matrix)}} @@ -193,7 +198,10 @@ jobs: images: name: Build and notarize Docker Images - needs: [ binaries-quick-test, stress-tests ] + needs: + - binaries + - binaries-quick-test + - stress-tests runs-on: ubuntu-latest env: JOB_NAME: ${{ github.job }} @@ -221,7 +229,7 @@ jobs: docker build --tag "${DOCKER_IMAGE_IMMUCLIENT}:dev" -f Dockerfile.immuclient . docker login -u "${{ secrets.REGISTRY_USER }}" -p "${{ secrets.REGISTRY_PASS }}" - + docker push "${DOCKER_IMAGE_IMMUDB}:dev" docker push "${DOCKER_IMAGE_IMMUDB}:dev-${DEBIAN_VERSION}" docker push "${DOCKER_IMAGE_IMMUDB}:dev-${ALMA_VERSION}" @@ -273,10 +281,12 @@ jobs: uses: docker://codenotary/cas:bom-docker with: args: n docker://${{ env.DOCKER_IMAGE_IMMUCLIENT }}:dev --host cas.codenotary.com --api-key ${{ secrets.CAS_API_KEY }} - + coveralls: name: Publish coverage - needs: [ gosec, old-go ] + needs: + - gosec + - old-go runs-on: ubuntu-latest steps: - uses: actions/setup-go@v3