Skip to content

Commit

Permalink
Order tags
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelgira23 committed Sep 19, 2023
1 parent aa667ac commit 810e4a6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=sha,format=long
type=sha
type=schedule
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=sha,format=long,order=2000
type=sha,order=1500
type=raw,value=latest,enable={{is_default_branch}}
# Build and push Docker image with Buildx (don't push on PR)
Expand Down Expand Up @@ -99,7 +99,9 @@ jobs:
run: |
echo "${{ steps.build-and-push.outputs.metadata }}"
echo "${{ fromJSON(steps.build-and-push.outputs.metadata)['image.name'] }}"
echo "${{ fromJSON(steps.build-and-push.outputs.metadata)['image.name'][0] }}"
echo "${{ steps.meta.outputs.tags }}"
echo "${{ steps.meta.outputs.tags[0] }}"
echo "${{ fromJSON(env.DOCKER_METADATA_OUTPUT_JSON)['image.name'][0] }}"
deploy:
needs: build
Expand Down

0 comments on commit 810e4a6

Please sign in to comment.