From 383cc06bbc4a41cef6563ac684d0363f06390ff4 Mon Sep 17 00:00:00 2001 From: Red Mushie Date: Sat, 23 Sep 2023 20:08:59 +0200 Subject: [PATCH] ci: Actually check latest tag for container latest tag --- .github/workflows/ci-tag.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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}}