Skip to content

Commit 37e9998

Browse files
authored
ci: push to ghcr.io in addition to docker hub (#200)
Motivated by Docker's much more aggressive [rate limits][1] on unauthenticated pulls of public images going into effect on April 1: [1]: https://docs.docker.com/docker-hub/usage/
1 parent 05a9dfd commit 37e9998

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,25 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v4
19-
2019
- uses: docker/setup-qemu-action@v2
21-
2220
- uses: docker/setup-buildx-action@v2
2321

2422
- uses: docker/login-action@v2
2523
with:
2624
username: ${{ secrets.DOCKERHUB_USERNAME }}
2725
password: ${{ secrets.DOCKERHUB_TOKEN }}
2826

27+
- uses: docker/login-action@v2
28+
with:
29+
registry: ghcr.io
30+
username: ${{ github.repository_owner }}
31+
password: ${{ secrets.GITHUB_TOKEN }}
32+
2933
- uses: docker/metadata-action@v4
3034
with:
3135
images: |
3236
mccutchen/go-httpbin
37+
ghcr.io/${{ github.repository }}
3338
id: meta
3439

3540
- uses: docker/build-push-action@v3

0 commit comments

Comments
 (0)