Browse Source

Update CI (#1105)

pull/1108/head
Keir 2 years ago
committed by GitHub
parent
commit
39c540d2d8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 28
      .github/workflows/release.yml

28
.github/workflows/release.yml

@ -121,15 +121,6 @@ jobs:
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
uses: rishabhgupta/split-by@v1.0.1 uses: rishabhgupta/split-by@v1.0.1
@ -150,16 +141,15 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish - Rename Tags - name: Publish - Build & Push for Multi-Platforms
run: | uses: docker/build-push-action@v5.3.0
docker tag squidex-local squidex/squidex:latest with:
docker tag squidex-local squidex/squidex:${{ env.GITHUB_REF_SLUG }} build-args: "SQUIDEX__BUILD__VERSION=${{ env.GITHUB_REF_SLUG }},SQUIDEX__RUNTIME__VERSION=${{ env.GITHUB_REF_SLUG }}"
docker tag squidex-local squidex/squidex:${{ steps.version.outputs._0 }} cache-from: type=gha
cache-to: type=gha,mode=max
- name: Publish - Push Tags platforms: linux/amd64,linux/arm64
run: | tags: squidex/squidex:${{ env.GITHUB_REF_SLUG }},squidex/squidex:${{ steps.version.outputs._0 }}
docker push squidex/squidex:${{ env.GITHUB_REF_SLUG }} push: {{ github.event_name != 'pull_request' }}
docker push squidex/squidex:${{ steps.version.outputs._0 }}
- name: Publish - Push Tags Latest - name: Publish - Push Tags Latest
if: env.STABLE_VERSION == 'true' if: env.STABLE_VERSION == 'true'

Loading…
Cancel
Save