Skip to content

Commit

Permalink
ci: Actually check latest tag for container latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
redmushie committed Sep 23, 2023
1 parent c1135bd commit 383cc06
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,20 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}


- uses: oprypin/find-latest-tag@v1
id: latest-tag
with:
repository: ${{ github.repository }}
releases-only: false

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest
type=raw,value=latest,enabled=${{ steps.latest-tag.outputs.tag == github.ref_name }}
type=ref,event=tag
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
Expand Down

0 comments on commit 383cc06

Please sign in to comment.