diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml index 9b7e5f85..178ab8e5 100644 --- a/.github/workflows/images.yaml +++ b/.github/workflows/images.yaml @@ -61,7 +61,7 @@ jobs: type=raw,value=canary,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} type=ref,event=pr type=semver,pattern={{raw}} - type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }} + type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '.') && !contains(github.ref, '-') }} - name: Login to GitHub Container Registry uses: docker/login-action@v3