diff --git a/.github/workflows/deploy-image.yml b/.github/workflows/deploy-image.yml index 443dd38..87a1cdf 100644 --- a/.github/workflows/deploy-image.yml +++ b/.github/workflows/deploy-image.yml @@ -41,10 +41,11 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | - type=raw,value=latest - type=raw,value={{branch}}-{{sha}} - type=raw,value={{branch}} - type=semver,pattern={{raw}} + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=sha - name: Build and push Docker image uses: docker/build-push-action@v4