Skip to content

Commit

Permalink
Support for ghcr.io container registry (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaby authored Oct 26, 2021
1 parent f79a932 commit d3ad0ea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/image-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
with:
images: |
dtzar/helm-kubectl
ghcr.io/dtzar/helm-kubectl
tags: |
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
type=ref,event=branch
Expand All @@ -45,6 +46,14 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
Expand Down

0 comments on commit d3ad0ea

Please sign in to comment.