Skip to content

Commit

Permalink
Updated build.yml to use GitHub container registry.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbushkov committed Mar 15, 2023
1 parent 465be61 commit 49c9fac
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,16 @@ jobs:
export BRANCH=$(echo $GITHUB_REF | cut -d'/' -f 3)
./appveyor/docker_build/build_docker_image.sh
- if: ${{ github.event_name == 'push' }}
name: Log in to Docker Hub
name: Login with Github Container registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- if: ${{ github.event_name == 'push' }}
name: Push to ${{ env.DOCKER_REPOSITORY }}
name: Push to GitHub Container registry
run: |
docker push -a ${{ env.DOCKER_REPOSITORY }}
docker push ghcr.io/google/grr:latest
upload:
if: ${{ github.event_name == 'push' }}
permissions:
Expand Down

0 comments on commit 49c9fac

Please sign in to comment.