diff --git a/.github/workflows/ci-tag.yml b/.github/workflows/ci-tag.yml index ab8a958d..b5487527 100644 --- a/.github/workflows/ci-tag.yml +++ b/.github/workflows/ci-tag.yml @@ -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}}