From 0c6f92d9be2ba81797beeca09b675036153e5f2f Mon Sep 17 00:00:00 2001 From: takatost Date: Sat, 12 Aug 2023 01:44:18 +0800 Subject: [PATCH] Feat/only tag arm64 build (#806) --- .github/workflows/build-api-image.yml | 2 +- .github/workflows/build-web-image.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-api-image.yml b/.github/workflows/build-api-image.yml index ceffcc051..cc3964e6e 100644 --- a/.github/workflows/build-api-image.yml +++ b/.github/workflows/build-api-image.yml @@ -42,7 +42,7 @@ jobs: uses: docker/build-push-action@v4 with: context: "{{defaultContext}}:api" - platforms: ${{ github.ref == 'refs/heads/deploy/dev' && 'linux/amd64' || 'linux/amd64,linux/arm64' }} + platforms: ${{ startsWith(github.ref, 'refs/tags/') && 'linux/amd64,linux/arm64' || 'linux/amd64' }} build-args: | COMMIT_SHA=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }} push: true diff --git a/.github/workflows/build-web-image.yml b/.github/workflows/build-web-image.yml index 730a5dbec..51d0e8967 100644 --- a/.github/workflows/build-web-image.yml +++ b/.github/workflows/build-web-image.yml @@ -42,7 +42,7 @@ jobs: uses: docker/build-push-action@v4 with: context: "{{defaultContext}}:web" - platforms: ${{ github.ref == 'refs/heads/deploy/dev' && 'linux/amd64' || 'linux/amd64,linux/arm64' }} + platforms: ${{ startsWith(github.ref, 'refs/tags/') && 'linux/amd64,linux/arm64' || 'linux/amd64' }} build-args: | COMMIT_SHA=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }} push: true