ci: new tag format on pr
All checks were successful
lint, build and push / lint (push) Successful in 4s
lint, build and push / build (push) Successful in 1m14s

This commit is contained in:
Michael Grote 2024-10-13 20:10:20 +02:00
parent e81aae89f3
commit c6ace9125e

View file

@ -8,7 +8,6 @@ on:
# Variables: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables + https://forgejo.org/docs/latest/user/actions/#env-1 # Variables: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables + https://forgejo.org/docs/latest/user/actions/#env-1
jobs: jobs:
lint: lint:
steps: steps:
@ -57,6 +56,10 @@ jobs:
with: with:
images: | images: |
registry.mgrote.net/${{ steps.name.outputs.REPO_NAME }} registry.mgrote.net/${{ steps.name.outputs.REPO_NAME }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch
type=ref,event=pr
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
# - name: Login to Docker Hub # - name: Login to Docker Hub