From 7c44d2d44f8cc01929da9cc865ad672713c60055 Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Thu, 23 May 2024 19:24:29 -0400 Subject: [PATCH] build: push pull request images to ghcr.io Should help with debugging... --- .github/workflows/build-pull-request.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-pull-request.yml b/.github/workflows/build-pull-request.yml index 230b711..0c10322 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