Skip to content

Commit

Permalink
build: add option to force container image push
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiste committed Oct 9, 2024
1 parent 5ddb81f commit 4161200
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/reusable-extension-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ on:
default: false
description: |
Can be used for private repos. The helm chart will be uploaded to the gh-pages branch
force_push_docker_image:
type: boolean
required: false
default: false
description: |
If set to true, the docker image will be pushed to the registry even if the workflow is triggered by a pull request
gcp_deb_dev_artifact_registry:
type: string
required: false
Expand Down Expand Up @@ -254,7 +260,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: ./
push: ${{ github.event_name != 'pull_request' }}
push: ${{ inputs.force_push_docker_image || github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
Expand Down

0 comments on commit 4161200

Please sign in to comment.