Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Commit 470a566

Browse files
committed
changes
1 parent ecb71d1 commit 470a566

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ on:
1717

1818
env:
1919
# Use docker.io for Docker Hub if empty
20-
#REGISTRY: ghcr.io
20+
REGISTRY_DOCKER: docker.io
21+
REGISTRY_GITHUB: ghcr.io
2122
# github.repository as <account>/<repo>
22-
IMAGE_NAME: ${{ github.repository }}
23-
23+
IMAGE_NAME: gameservermanagers/linuxgsm-docker
2424

2525
jobs:
2626
build:
@@ -45,7 +45,6 @@ jobs:
4545
with:
4646
cosign-release: 'v1.5.1'
4747

48-
4948
# Workaround: https://github.com/docker/build-push-action/issues/461
5049
- name: Setup Docker buildx
5150
uses: docker/setup-buildx-action@v1.6.0
@@ -56,15 +55,15 @@ jobs:
5655
if: github.event_name != 'pull_request'
5756
uses: docker/login-action@v1.12.0
5857
with:
59-
registry: ghcr.io
58+
registry: ${{ env.REGISTRY_GITHUB }}
6059
username: ${{ github.actor }}
6160
password: ${{ secrets.GITHUB_TOKEN }}
6261

6362
- name: Log into registry DockerHub
6463
if: github.event_name != 'pull_request'
6564
uses: docker/login-action@v1.12.0
6665
with:
67-
registry: docker.io
66+
registry: ${{ env.REGISTRY_DOCKER }}
6867
username: ${{ secrets.DOCKER_HUB_USERNAME }}
6968
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
7069

@@ -74,7 +73,7 @@ jobs:
7473
id: meta
7574
uses: docker/metadata-action@v3.6.2
7675
with:
77-
images: gameservermanagers/linuxgsm-docker
76+
images: ${{ IMAGE_NAME }}
7877

7978
# Build and push Docker image with Buildx (don't push on PR)
8079
# https://github.com/docker/build-push-action

0 commit comments

Comments
 (0)