Skip to content

Commit

Permalink
👷 Add image publication on ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
zigarn committed Jun 6, 2024
1 parent e14d538 commit 128b218
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container registry
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to US GAR
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/login-action@v3
Expand Down Expand Up @@ -170,6 +178,8 @@ jobs:
tags: |
zenika/${{ env.IMAGE_NAME }}
zenika/${{ env.IMAGE_VERSIONED_NAME }}
ghcr.io/zenika/${{ env.IMAGE_NAME }}
ghcr.io/zenika/${{ env.IMAGE_VERSIONED_NAME }}
us-docker.pkg.dev/zenika-hub/gcr.io/${{ env.IMAGE_NAME }}
us-docker.pkg.dev/zenika-hub/gcr.io/${{ env.IMAGE_VERSIONED_NAME }}
us-docker.pkg.dev/zenika-hub/us.gcr.io/${{ env.IMAGE_NAME }}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

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)
- On the [Docker Hub](https://hub.docker.com/r/zenika/alpine-chrome) without any prefix: `zenika/alpine-chrome`
- On [GitHub Container registry](https://github.com/Zenika/alpine-chrome/pkgs/container/alpine-chrome): `ghcr.io/zenika/alpine-chrome`
- On Google Cloud - available in the closest region:
- Global: `gcr.io/zenika-hub/alpine-chrome`
- Europe: `eu.gcr.io/zenika-hub/alpine-chrome`
Expand Down

0 comments on commit 128b218

Please sign in to comment.