Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jtrouth committed Dec 27, 2023
1 parent 3ad9f58 commit 8cc9723
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
name: Build Container Image
runs-on: ubuntu-latest
outputs:
deploy_tag: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
deploy_tag: ${{ steps.deploy-tag.outputs.tag }}
steps:
-
name: Checkout
Expand All @@ -48,6 +48,20 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
-
name: Parse deployment tag
id: deploy-tag
run: |
tag=''
for tag in ${{ fromJSON(steps.meta.outputs.json).tags }}
do
if [[ $tag =~ ":(sha-|v.[0-9.]{3})"]]
then
tag=$tag
fi
done
echo "tag=$tag" >> "$GITHUB_OUTPUT"
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down

0 comments on commit 8cc9723

Please sign in to comment.