Skip to content

Commit

Permalink
ci(docker): tag latest on tags (#28)
Browse files Browse the repository at this point in the history
* ci(docker): tag latest only on tags

* use GH templating
  • Loading branch information
AlexisBRENON authored Jan 31, 2025
1 parent a45d1e2 commit 07533cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ jobs:
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
env:
latest_enabled: ${{ github.ref_type == 'tag' || github.ref_name == 'main' }}
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=${{ inputs.version }}
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=latest,enable=${{ env.latest_enabled }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand Down

0 comments on commit 07533cb

Please sign in to comment.