diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b36ab25..5154d8c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -36,9 +36,12 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - # TODO: Adjust this as soon as we have semver tags: | - type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} - name: Login to GitHub Container Registry uses: docker/login-action@v3