Skip to content

Commit

Permalink
feat: push to GitHub container registry as well
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-buss committed Jan 8, 2023
1 parent a0a71e1 commit 2c5e202
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/docker_hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
# list of Docker images to use as base name for tags
images: |
evanbuss/openbooks
ghcr.io/${{ github.repository }}
# generate Docker tags based on the following events/attributes
# 'latest' when push to master with tag
# 'edge' when push to development
Expand All @@ -64,6 +65,13 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push
uses: docker/build-push-action@v3
with:
Expand Down

0 comments on commit 2c5e202

Please sign in to comment.