diff --git a/.github/actions/docker-build/action.yml b/.github/actions/docker-build/action.yml index 0df6d0b..422cfc9 100644 --- a/.github/actions/docker-build/action.yml +++ b/.github/actions/docker-build/action.yml @@ -49,7 +49,14 @@ runs: uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0 with: images: ${{ inputs['image-name'] }} - + tags: | + type=semver,enable=true,pattern={{raw}} + type=semver,enable=true,pattern={{major}},prefix=v + type=semver,enable=true,pattern=latest + type=ref,event=pr,prefix=pr-,enable=true + type=ref,event=branch,branch=main,pattern={{raw}} + type=ref,event=branch,branch=main,pattern={{major}},prefix=v + type=ref,event=branch,branch=main,pattern=latest - name: Build Docker image uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0 with: