Skip to content

Commit 128b218

Browse files
committed
👷 Add image publication on ghcr.io
1 parent e14d538 commit 128b218

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/build-one.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ jobs:
127127
username: ${{ secrets.DOCKERHUB_USERNAME }}
128128
password: ${{ secrets.DOCKERHUB_TOKEN }}
129129

130+
- name: Login to GitHub Container registry
131+
if: ${{ github.ref == 'refs/heads/master' }}
132+
uses: docker/login-action@v3
133+
with:
134+
registry: ghcr.io
135+
username: ${{ github.actor }}
136+
password: ${{ secrets.GITHUB_TOKEN }}
137+
130138
- name: Login to US GAR
131139
if: ${{ github.ref == 'refs/heads/master' }}
132140
uses: docker/login-action@v3
@@ -170,6 +178,8 @@ jobs:
170178
tags: |
171179
zenika/${{ env.IMAGE_NAME }}
172180
zenika/${{ env.IMAGE_VERSIONED_NAME }}
181+
ghcr.io/zenika/${{ env.IMAGE_NAME }}
182+
ghcr.io/zenika/${{ env.IMAGE_VERSIONED_NAME }}
173183
us-docker.pkg.dev/zenika-hub/gcr.io/${{ env.IMAGE_NAME }}
174184
us-docker.pkg.dev/zenika-hub/gcr.io/${{ env.IMAGE_VERSIONED_NAME }}
175185
us-docker.pkg.dev/zenika-hub/us.gcr.io/${{ env.IMAGE_NAME }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
Following the changes with the [Rate Limiting on Docker Hub](https://www.docker.com/increase-rate-limits). [Tweet here for more information in 🇫🇷](https://twitter.com/jlandure/status/1322474352554770432)
1010
- On the [Docker Hub](https://hub.docker.com/r/zenika/alpine-chrome) without any prefix: `zenika/alpine-chrome`
11+
- On [GitHub Container registry](https://github.com/Zenika/alpine-chrome/pkgs/container/alpine-chrome): `ghcr.io/zenika/alpine-chrome`
1112
- On Google Cloud - available in the closest region:
1213
- Global: `gcr.io/zenika-hub/alpine-chrome`
1314
- Europe: `eu.gcr.io/zenika-hub/alpine-chrome`

0 commit comments

Comments
 (0)