|
|
|
@ -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: |
|
|
|
|