diff --git a/.github/workflows/build-pull-request.yml b/.github/workflows/build-pull-request.yml index ce0f5e7..ba3c76c 100644 --- a/.github/workflows/build-pull-request.yml +++ b/.github/workflows/build-pull-request.yml @@ -29,12 +29,20 @@ jobs: - name: Set up docker uses: docker/setup-buildx-action@v3 + - name: Login to GitHub container registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and export to Docker uses: docker/build-push-action@v5 with: context: . tags: ${{ env.IMAGE_NAME }}:${{ env.TAG }} load: true + push: true cache-from: | type=local,src=/home/runner/.buildx-cache type=registry,ref=${{ env.IMAGE_NAME }}:latest