Skip to content

Commit

Permalink
Merge pull request #161 from PixelgenTechnologies/fix-dev-images-vers…
Browse files Browse the repository at this point in the history
…ion-on-tag

ci: fix pixelator container version on tag push
  • Loading branch information
fbdtemme authored Jul 10, 2024
2 parents 3f36907 + c49352f commit 8bc3a1f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/actions/build-dev-image/action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: "build-dev-image"
description: "Build a dev image and push it to the Pixelgen container registries"
inputs:
tag:
description: "The tag to use for the image"
required: true
cache-from:
description: "The cache to use for the build"
default: ""
Expand Down Expand Up @@ -61,6 +58,11 @@ runs:
bakeSetCommands.push(...cacheToArray)
bakeSetCommands.push(...platformArray)
# Override the version in the container if we are run in a version tag push event
if ( context.eventName === "push" && github.ref.startsWith('refs/tags/v) ) {
bakeSetCommands.push("*.args.VERSION_OVERRIDE=" + "${{ steps.meta.outputs.version }}" )
}
bakeSetCommandsText = bakeSetCommands.join('\n')
core.setOutput('set', bakeSetCommandsText)
Expand Down

0 comments on commit 8bc3a1f

Please sign in to comment.