-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18bdda8
commit 7e0e521
Showing
1 changed file
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,6 +120,15 @@ jobs: | |
run: | | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
- name: Publish - Build for Multi-Platforms | ||
uses: docker/[email protected] | ||
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 | ||
id: version | ||
|
@@ -135,21 +144,16 @@ jobs: | |
echo "STABLE_VERSION=true" >> $GITHUB_ENV | ||
fi | ||
- name: Publish - Login to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Publish - Build & Push for Multi-Platforms | ||
uses: docker/[email protected] | ||
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/squidex:${{ env.GITHUB_REF_SLUG }},squidex/squidex:${{ steps.version.outputs._0 }} | ||
push: ${{ github.event_name != 'pull_request' }} | ||
- name: Publish - Rename Tags | ||
run: | | ||
docker tag squidex-local squidex/squidex:latest | ||
docker tag squidex-local squidex/squidex:${{ env.GITHUB_REF_SLUG }} | ||
docker tag squidex-local squidex/squidex:${{ steps.version.outputs._0 }} | ||
- name: Publish - Push Tags | ||
run: | | ||
docker push squidex/squidex:${{ env.GITHUB_REF_SLUG }} | ||
docker push squidex/squidex:${{ steps.version.outputs._0 }} | ||
- name: Publish - Push Tags Latest | ||
if: env.STABLE_VERSION == 'true' | ||
|