Skip to content

Commit f2fe024

Browse files
authored
ci: publish Docker images to ghcr.io
1 parent bcbac74 commit f2fe024

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/dockerhub.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
uses: docker/metadata-action@v3
4040
with:
4141
images: |
42+
ghcr.io/nginx-proxy/docker-gen
4243
nginxproxy/docker-gen
4344
jwilder/docker-gen
4445
tags: |
@@ -55,6 +56,7 @@ jobs:
5556
uses: docker/metadata-action@v3
5657
with:
5758
images: |
59+
ghcr.io/nginx-proxy/docker-gen
5860
nginxproxy/docker-gen
5961
jwilder/docker-gen
6062
tags: |
@@ -78,6 +80,13 @@ jobs:
7880
username: ${{ secrets.DOCKERHUB_USERNAME }}
7981
password: ${{ secrets.DOCKERHUB_TOKEN }}
8082

83+
- name: Log in to GitHub Container Registry
84+
uses: docker/login-action@v1
85+
with:
86+
registry: ghcr.io
87+
username: ${{ github.actor }}
88+
password: ${{ secrets.GITHUB_TOKEN }}
89+
8190
- name: Build and push the Alpine based image
8291
if: ${{ matrix.base == 'alpine' }}
8392
id: docker_build_alpine
@@ -107,4 +116,4 @@ jobs:
107116

108117
- name: Debian based image digest
109118
if: ${{ matrix.base == 'debian' }}
110-
run: echo ${{ steps.docker_build_debian.outputs.digest }}
119+
run: echo ${{ steps.docker_build_debian.outputs.digest }}

0 commit comments

Comments
 (0)