Skip to content

Commit

Permalink
feat: 👷 Containerisation Automation
Browse files Browse the repository at this point in the history
Harmonisation with other demos
  • Loading branch information
BRUVRY-LAGADEC committed Nov 14, 2024
1 parent 00adcd6 commit c0ab096
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/java-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ on:

jobs:
build:
env:
rulePush: ${{ github.event_name == 'release' }}
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
Expand All @@ -22,20 +20,20 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/#-action@v3
if: ${{ env.rulePush }}
if: ${{ github.event_name == 'release' }}
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build
uses: docker/build-push-action@v6
if: ${{ ! env.rulePush }}
if: ${{ github.event_name != 'release' }}
with:
context: "{{defaultContext}}:java-demo"
push: false
- name: Build and push
uses: docker/build-push-action@v6
if: ${{ env.rulePush }}
if: ${{ github.event_name == 'release' }}
with:
context: "{{defaultContext}}:java-demo"
push: true
Expand Down

0 comments on commit c0ab096

Please # to comment.