| @@ -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 | |||
| @@ -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 | |||