1
0
Fork 0
mirror of https://github.com/parrazam/radicale-docker.git synced 2024-11-25 01:39:11 +01:00

Deploy on both Docker Hub Registries

This commit is contained in:
parra 2022-04-13 14:04:28 +02:00
parent a61c80e0aa
commit 9b438b634b

View file

@ -4,11 +4,13 @@ on:
push: push:
branches: branches:
- develop - develop
tags: [ '*.*.*.*' ]
pull_request: pull_request:
branches: [ master ] branches: [ master ]
env: env:
IMAGE_NAME: ${{ github.repository }} IMAGE_NAME: ${{ github.repository }}
IMAGE_NAME_WITH_INFCLOUD: parrazam/radicale-with-infcloud
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7 PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7
GH_REPO: ghcr.io GH_REPO: ghcr.io
@ -57,6 +59,7 @@ jobs:
images: | images: |
${{ env.GH_REPO }}/${{ env.IMAGE_NAME }} ${{ env.GH_REPO }}/${{ env.IMAGE_NAME }}
${{ env.IMAGE_NAME }} ${{ env.IMAGE_NAME }}
${{ env.IMAGE_NAME_WITH_INFCLOUD }}
- name: Build image and push snapshot to GitHub Container Registry - name: Build image and push snapshot to GitHub Container Registry
id: build-and-push id: build-and-push
@ -64,6 +67,6 @@ jobs:
with: with:
context: . context: .
platforms: ${{ env.PLATFORMS }} platforms: ${{ env.PLATFORMS }}
push: true push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}