Browse Source

Try fix build

pull/1109/head 17.4.0
Sebastian 2 years ago
parent
commit
7e0e521ce8
  1. 34
      .github/workflows/release.yml

34
.github/workflows/release.yml

@ -120,6 +120,15 @@ 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
@ -135,21 +144,16 @@ jobs:
echo "STABLE_VERSION=true" >> $GITHUB_ENV echo "STABLE_VERSION=true" >> $GITHUB_ENV
fi fi
- name: Publish - Login to Docker Hub - name: Publish - Rename Tags
uses: docker/login-action@v3.2.0 run: |
with: docker tag squidex-local squidex/squidex:latest
username: ${{ secrets.DOCKER_USERNAME }} docker tag squidex-local squidex/squidex:${{ env.GITHUB_REF_SLUG }}
password: ${{ secrets.DOCKER_PASSWORD }} docker tag squidex-local squidex/squidex:${{ steps.version.outputs._0 }}
- name: Publish - Build & Push for Multi-Platforms - name: Publish - Push Tags
uses: docker/build-push-action@v5.3.0 run: |
with: docker push squidex/squidex:${{ env.GITHUB_REF_SLUG }}
build-args: "SQUIDEX__BUILD__VERSION=${{ env.GITHUB_REF_SLUG }},SQUIDEX__RUNTIME__VERSION=${{ env.GITHUB_REF_SLUG }}" docker push squidex/squidex:${{ steps.version.outputs._0 }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
tags: squidex/squidex:${{ env.GITHUB_REF_SLUG }},squidex/squidex:${{ steps.version.outputs._0 }}
push: ${{ github.event_name != 'pull_request' }}
- name: Publish - Push Tags Latest - name: Publish - Push Tags Latest
if: env.STABLE_VERSION == 'true' if: env.STABLE_VERSION == 'true'

Loading…
Cancel
Save