From 699edd42188d20cb143eb86536bf9aa547122ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Dan?= Date: Tue, 12 Sep 2023 10:18:17 +0200 Subject: [PATCH] ci: push docker image on release --- .github/workflows/docker-build-push.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index c48441de09..e3883ed9b9 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -5,6 +5,8 @@ on: branches: [develop] pull_request: branches: [develop] + release: + types: [created] env: REGISTRY: ghcr.io @@ -38,6 +40,12 @@ jobs: uses: docker/metadata-action@v4 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=ref,event=branch + type=ref,event=pr + type=raw,value=test,enable={{is_default_branch}} + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} - name: Push to GitHub Container Registry uses: docker/build-push-action@v3