Skip to content

Commit

Permalink
Add 'needs: build' to ghcr-image job in build.yml and release.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Engelhardt <[email protected]>
  • Loading branch information
antonengelhardt committed Feb 9, 2024
1 parent a9ed238 commit 56593b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:

ghcr-image:
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
packages: write
Expand All @@ -91,6 +92,6 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to GHCR
run:
docker build -t ghcr.io/antonengelhardt/wasm-oidc-plugin:latest . &&
run: |
docker build -t ghcr.io/antonengelhardt/wasm-oidc-plugin:latest .
docker push ghcr.io/antonengelhardt/wasm-oidc-plugin:latest
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:

ghcr-image:
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
packages: write
Expand All @@ -72,7 +73,6 @@ jobs:
echo VERSION=$(echo ${{ github.ref }} | grep -o "v[0-9]\+\.[0-9]\+\.[0-9]\+") >> $GITHUB_ENV
- name: Push to GHCR
run:
run: |
docker build -t ghcr.io/antonengelhardt/wasm-oidc-plugin:${{ env.VERSION }} .
docker push ghcr.io/antonengelhardt/wasm-oidc-plugin:${{ env.VERSION }}

0 comments on commit 56593b3

Please sign in to comment.