Skip to content

Commit

Permalink
Add example for ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
prodrigestivill committed Mar 4, 2022
1 parent e558018 commit d893605
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,34 @@ jobs:
REGISTRY_PREFIX: ${{ secrets.DOCKERHUB_USERNAME }}/
BUILD_REVISION: ${{ steps.vars.outputs.sha_short }}
run: docker buildx bake --push

## Example of publish using GitHub Container Registry instead
# publish:
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
# needs: [ test-script ]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
#
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v1
#
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
#
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v1
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Build images
# env:
# REGISTRY_PREFIX: ghcr.io/${{ github.repository_owner }}/
# run: docker buildx bake --pull
#
# - name: Push images
# env:
# REGISTRY_PREFIX: ghcr.io/${{ github.repository_owner }}/
# run: docker buildx bake --push

0 comments on commit d893605

Please sign in to comment.