From 913b57c2769881d63e5f7011e30ef55a7ef496b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Budnik?= Date: Mon, 16 Aug 2021 12:21:39 +0200 Subject: [PATCH] added missing tags input for event branch --- .github/workflows/docker-publish.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index da007aa..eaee1db 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -9,7 +9,7 @@ on: jobs: push_to_registries: - name: Push Docker image to Docker hub and GHCR registries + name: Push Docker image to Docker Hub and ghcr.io registries runs-on: ubuntu-latest permissions: packages: write @@ -38,6 +38,12 @@ jobs: images: | lukasz/migrator ghcr.io/${{ github.repository }} + tags: | + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} - name: Build and push Docker images uses: docker/build-push-action@v2