Skip to content

Commit

Permalink
fix(github/push): Fix notarization of binaries
Browse files Browse the repository at this point in the history
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 <bart@codenotary.com>
  • Loading branch information
Bartłomiej Święcki committed Apr 27, 2022
1 parent 3028813 commit 399e42e
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 399e42e

Please sign in to comment.