Enable both the DockerHub and the GitHub Container Registry for building and uploading

This commit is contained in:
grossmj 2023-06-19 13:00:23 +09:30
parent c47148cfd8
commit 79637b7946

View File

@ -50,7 +50,7 @@ jobs:
- name: Login to GitHub Container Registry
# https://github.com/marketplace/actions/docker-login
# set the condition depending on whether you want to login to ghcr.io.
if: false
if: true
uses: docker/login-action@v2
with:
registry: ghcr.io
@ -64,13 +64,13 @@ jobs:
env:
# DOCKER_REPOSITORY - Repository for name-only images
# DockerHub:
DOCKER_REPOSITORY: ${{ secrets.DOCKERHUB_REPOSITORY }}
#DOCKER_REPOSITORY: ${{ secrets.DOCKERHUB_REPOSITORY }}
# GitHub Container Registry:
#DOCKER_REPOSITORY: ghcr.io/${{ github.repository_owner }}
# Both DockerHub and GitHub Container Registry:
#DOCKER_REPOSITORY: >-
# ${{ secrets.DOCKERHUB_REPOSITORY }}
# ghcr.io/${{ github.repository_owner }}
DOCKER_REPOSITORY: >-
${{ secrets.DOCKERHUB_REPOSITORY }}
ghcr.io/${{ github.repository_owner }}
#
# Variables whose name are starting with "DOCKER_LOGIN"
# contain the user/password for a docker registry.