Skip to content

Commit

Permalink
Add option to push manually
Browse files Browse the repository at this point in the history
  • Loading branch information
mieciu committed Jul 10, 2024
1 parent 54b81a0 commit ff861d7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
description: 'Version number to tag the image with'
default: latest
required: true
PUSH:
description: 'Whether to push the image to the registry'
default: false
required: true

jobs:
build-quesma-docker-image:
Expand Down Expand Up @@ -51,8 +55,8 @@ jobs:
europe-docker.pkg.dev/metal-figure-407109/quesma-nightly/quesma:${{ github.event.inputs.VERSION }}
quesma/quesma:${{ github.event.inputs.VERSION }}
quesma/quesma:latest
# Pushes to GCR only for `main` branch builds
push: true #${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
# Pushes to GCR only for `main` branch builds, unless set explicitly in the job input
push: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event.inputs.PUSH }}
build-args: |
QUESMA_BUILD_SHA=${{ github.sha }}
QUESMA_VERSION=${{ github.event.inputs.VERSION }}
Expand Down

0 comments on commit ff861d7

Please sign in to comment.