Skip to content

Commit

Permalink
Use GHCR instead of Docker Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
poperigby authored Aug 31, 2023
1 parent 8171988 commit 68c48a1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Docker.io
- name: Login to GHCR.io
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ secrets.DOCKER_IO_USERNAME }}
password: ${{ secrets.DOCKER_IO_TOKEN }}
registry: ghcr.io
password: ${{ secrets.GH_TOKEN }}

- name: Build and push my toolbox image
uses: docker/build-push-action@v3
Expand All @@ -36,4 +35,4 @@ jobs:
platforms: linux/amd64
push: true
no-cache: true
tags: docker.io/${{ github.repository }}:latest
tags: ghcr.io/${{ github.repository }}:latest

0 comments on commit 68c48a1

Please sign in to comment.