From 9b438b634b5430dc8cb0e36cd9144bc9adcfb42a Mon Sep 17 00:00:00 2001 From: parra Date: Wed, 13 Apr 2022 14:04:28 +0200 Subject: [PATCH] Deploy on both Docker Hub Registries --- .github/workflows/build-snapshot.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-snapshot.yml b/.github/workflows/build-snapshot.yml index bd01b66..9375637 100644 --- a/.github/workflows/build-snapshot.yml +++ b/.github/workflows/build-snapshot.yml @@ -4,11 +4,13 @@ on: push: branches: - develop + tags: [ '*.*.*.*' ] pull_request: branches: [ master ] env: IMAGE_NAME: ${{ github.repository }} + IMAGE_NAME_WITH_INFCLOUD: parrazam/radicale-with-infcloud PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7 GH_REPO: ghcr.io @@ -57,6 +59,7 @@ jobs: images: | ${{ env.GH_REPO }}/${{ env.IMAGE_NAME }} ${{ env.IMAGE_NAME }} + ${{ env.IMAGE_NAME_WITH_INFCLOUD }} - name: Build image and push snapshot to GitHub Container Registry id: build-and-push @@ -64,6 +67,6 @@ jobs: with: context: . platforms: ${{ env.PLATFORMS }} - push: true + push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}