Skip to content

Commit

Permalink
ci: fix tags for image
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkparekh committed Dec 1, 2023
1 parent db98151 commit db81dc4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ jobs:

- name: Extract metadata (tags, labels) for Docker
id: meta
env:
IMAGE_TAG: ${{ steps.image-tag.outputs.tag }}
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}
tags: |
type=raw,value=${{steps.image-tag.outputs.tag}},enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=raw,value=${{steps.image-tag.outputs.tag}},enable={{is_default_branch}}
type=raw,value=${{IMAGE_TAG}},enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=raw,value=${{IMAGE_TAG}},enable={{is_default_branch}}
- name: Build and push image
uses: docker/build-push-action@v5
Expand Down

0 comments on commit db81dc4

Please sign in to comment.