Browse Source

Try a new build approach.

pull/1109/head 7.14.0
Sebastian 2 years ago
parent
commit
8d2d99f898
  1. 38
      .github/workflows/release.yml

38
.github/workflows/release.yml

@ -120,15 +120,6 @@ jobs:
run: | run: |
sudo rm -rf /usr/share/dotnet sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY" sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Publish - Build for Multi-Platforms
uses: docker/build-push-action@v5.4.0
with:
build-args: "SQUIDEX__BUILD__VERSION=${{ env.GITHUB_REF_SLUG }},SQUIDEX__RUNTIME__VERSION=${{ env.GITHUB_REF_SLUG }}"
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
tags: squidex-local
- name: Publish - Get Major Version - name: Publish - Get Major Version
id: version id: version
@ -144,21 +135,20 @@ jobs:
echo "STABLE_VERSION=true" >> $GITHUB_ENV echo "STABLE_VERSION=true" >> $GITHUB_ENV
fi fi
- name: Publish - Rename Tags - name: Publish - Login to Docker Hub
run: | uses: docker/login-action@v3.2.0
docker tag squidex-local squidex/squidex:latest with:
docker tag squidex-local squidex/squidex:${{ env.GITHUB_REF_SLUG }} username: ${{ secrets.DOCKER_USERNAME }}
docker tag squidex-local squidex/squidex:${{ steps.version.outputs._0 }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish - Push Tags - name: Publish - Build & Push for Multi-Platforms
run: | uses: docker/build-push-action@v5.3.0
docker push squidex/squidex:${{ env.GITHUB_REF_SLUG }} with:
docker push squidex/squidex:${{ steps.version.outputs._0 }} build-args: "SQUIDEX__BUILD__VERSION=${{ env.GITHUB_REF_SLUG }},SQUIDEX__RUNTIME__VERSION=${{ env.GITHUB_REF_SLUG }}"
cache-from: type=gha
- name: Publish - Push Tags Latest cache-to: type=gha,mode=max
if: env.STABLE_VERSION == 'true' platforms: linux/amd64,linux/arm64
run: | tags: squidex/squidex:${{ env.GITHUB_REF_SLUG }},squidex/squidex:${{ steps.version.outputs._0 }}${{env.STABLE_VERSION == 'true' && ',squidex/squidex:latest'}}
docker push squidex/squidex:latest
- name: Release - Make directories - name: Release - Make directories
run: sudo mkdir /build /release run: sudo mkdir /build /release

Loading…
Cancel
Save