diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 877d58c..0ab550f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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