Skip to content

Commit

Permalink
Merge pull request #566 from microbiomedata/564-publish-container-ima…
Browse files Browse the repository at this point in the history
…ges-to-github-container-registry-ghcr-instead-of-docker-hub

Authenticate as workflow triggerer instead of as repo owner
  • Loading branch information
eecavanna committed Jun 19, 2024
2 parents 2d7a821 + acd3017 commit 5c96e12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-release-to-spin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

# Reference: https://docs.docker.com/build/ci/github-actions/push-multi-registries/
# Reference: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
Expand Down

0 comments on commit 5c96e12

Please sign in to comment.