From 7ecd1a0d3bf1dd32c0481439a84668936be638cb Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 8 Dec 2022 15:23:20 +0100 Subject: [PATCH] Fix build. --- .github/workflows/dev.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 8832f9ca4..429ca56ed 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -28,12 +28,14 @@ jobs: uses: docker/setup-buildx-action@v2.2.1 - name: Login to Docker Hub + if: github.event_name != 'pull_request' uses: docker/login-action@v2.1.0 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: BUILD + if: github.event_name != 'pull_request' uses: docker/build-push-action@v3.2.0 with: push: true @@ -55,6 +57,16 @@ jobs: - name: Pull from Cache run: docker pull squidex/squidex-build + - name: BUILD + if: github.event_name == 'pull_request' + uses: docker/build-push-action@v3.2.0 + with: + load: true + build-args: "SQUIDEX__RUNTIME__VERSION=7.0.0-dev-${{ env.BUILD_NUMBER }}" + cache-from: type=gha + cache-to: type=gha,mode=max + tags: squidex/squidex-build + - name: Replace Image Name1 uses: mikefarah/yq@v4.28.2 with: