|
|
@ -22,6 +22,14 @@ jobs: |
|
|
- name: Set up Docker Buildx |
|
|
- name: Set up Docker Buildx |
|
|
uses: docker/setup-buildx-action@v1 |
|
|
uses: docker/setup-buildx-action@v1 |
|
|
|
|
|
|
|
|
|
|
|
- name: Cache Docker layers |
|
|
|
|
|
uses: actions/cache@v2 |
|
|
|
|
|
with: |
|
|
|
|
|
path: /tmp/.buildx-cache |
|
|
|
|
|
key: ${{ runner.os }}-buildx-${{ github.sha }} |
|
|
|
|
|
restore-keys: | |
|
|
|
|
|
${{ runner.os }}-buildx- |
|
|
|
|
|
|
|
|
- name: BUILD |
|
|
- name: BUILD |
|
|
uses: docker/build-push-action@v2 |
|
|
uses: docker/build-push-action@v2 |
|
|
with: |
|
|
with: |
|
|
@ -29,6 +37,8 @@ jobs: |
|
|
load: true |
|
|
load: true |
|
|
tags: squidex-tmp |
|
|
tags: squidex-tmp |
|
|
build-args: "SQUIDEX__VERSION=${{ env.GITHUB_REF_SLUG }}" |
|
|
build-args: "SQUIDEX__VERSION=${{ env.GITHUB_REF_SLUG }}" |
|
|
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache |
|
|
|
|
|
cache-to: type=local,dest=/tmp/.buildx-cache-new |
|
|
|
|
|
|
|
|
- name: Export Image |
|
|
- name: Export Image |
|
|
run: docker save squidex-tmp | gzip > squidex-tmp.tar.gz |
|
|
run: docker save squidex-tmp | gzip > squidex-tmp.tar.gz |
|
|
@ -39,6 +49,11 @@ jobs: |
|
|
path: squidex-tmp.tar.gz |
|
|
path: squidex-tmp.tar.gz |
|
|
key: squidex-release-image-${{ github.sha }} |
|
|
key: squidex-release-image-${{ github.sha }} |
|
|
|
|
|
|
|
|
|
|
|
- name: Move cache |
|
|
|
|
|
run: | |
|
|
|
|
|
rm -rf /tmp/.buildx-cache |
|
|
|
|
|
mv /tmp/.buildx-cache-new /tmp/.buildx-cache |
|
|
|
|
|
|
|
|
test: |
|
|
test: |
|
|
needs: build |
|
|
needs: build |
|
|
runs-on: ubuntu-latest |
|
|
runs-on: ubuntu-latest |
|
|
@ -147,8 +162,9 @@ jobs: |
|
|
- name: Get Binaries |
|
|
- name: Get Binaries |
|
|
run: | |
|
|
run: | |
|
|
mkdir /build 2> /dev/null |
|
|
mkdir /build 2> /dev/null |
|
|
docker create --name squidex-container squidex-tmp |
|
|
docker run -d --name squidex-container squidex-tmp |
|
|
docker cp squidex-container:/app/. /build/ |
|
|
docker cp squidex-container:/app/. /build/ |
|
|
|
|
|
docker rm -f squidex-container |
|
|
|
|
|
|
|
|
- name: ZIP Binaries |
|
|
- name: ZIP Binaries |
|
|
run: | |
|
|
run: | |
|
|
|