mirror of
https://github.com/GNS3/gns3-registry.git
synced 2024-12-18 20:37:57 +00:00
Enable both the DockerHub and the GitHub Container Registry for building and uploading
This commit is contained in:
parent
c47148cfd8
commit
79637b7946
10
.github/workflows/build-docker-images.yml
vendored
10
.github/workflows/build-docker-images.yml
vendored
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user