Update image release flow

This commit is contained in:
parra 2022-04-13 14:25:47 +02:00 committed by GitHub
parent 0c26e86d90
commit dfde9f1f3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 8 deletions

View File

@ -6,6 +6,7 @@ on:
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
@ -36,26 +37,27 @@ jobs:
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log into registry ${{ env.REGISTRY }}
- name: Log into ${{ env.GH_REPO }} registry
uses: docker/login-action@v1
with:
registry: ${{ env.GH_REPO }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v3
with:
images: |
${{ env.IMAGE_NAME }}
${{ env.IMAGE_NAME_WITH_INFCLOUD }}
${{ env.GH_REPO }}/${{ env.IMAGE_NAME }}
tags: |
type=match,pattern=\d.\d.\d.\d