Skip to content

Commit

Permalink
ci: Skip build steps completely on releases
Browse files Browse the repository at this point in the history
No point in running these steps if we are not pushing anyway. The
release workflow will take care.

Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
jan-kiszka committed Feb 26, 2024
1 parent dc97b9f commit 6c64080
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,22 @@ jobs:
deploy-token: ${{ secrets.PACKAGE_DEPLOY_TOKEN }}
- name: Build kas image
uses: docker/build-push-action@v5
if: ${{ env.PUSH_MASTER }}
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
push: ${{ env.PUSH_MASTER }}
push: true
tags: ghcr.io/siemens/kas/kas
- name: Build kas-isar image
uses: docker/build-push-action@v5
if: ${{ env.PUSH_MASTER }}
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
target: kas-isar
platforms: linux/amd64,linux/arm64
push: ${{ env.PUSH_MASTER }}
push: true
tags: ghcr.io/siemens/kas/kas-isar

0 comments on commit 6c64080

Please sign in to comment.