diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-16 20:57:58 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-16 20:57:58 +0500 |
| commit | 109ed841d2b487d1241797d432a99b659bda6409 (patch) | |
| tree | 60bf618f8fad7b7e8f308b37bd1238145fa83c46 /.github/workflows/ci.yml | |
| parent | workflows/ci: proper tags for Docker Hub images (diff) | |
| download | math-server-1.0.1.tar.gz math-server-1.0.1.zip | |
workflows/ci: build Docker images for ARM for tags onlyv1.0.1
Diffstat (limited to '')
| -rw-r--r-- | .github/workflows/ci.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c7281c..8d47660 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -112,10 +112,13 @@ jobs: uses: docker/setup-buildx-action@v4 - id: params name: Push? Which platforms? - # Building for ARM for every commit not in master is too time-consuming. + # Building for ARM for every commit in master is too time-consuming. run: | if [ '${{ github.ref }}' = 'refs/heads/master' ]; then echo 'push=true' >> "$GITHUB_OUTPUT" + echo 'platforms=amd64' >> "$GITHUB_OUTPUT" + elif ${{ startsWith(github.ref, 'refs/tags/') }}; then + echo 'push=true' >> "$GITHUB_OUTPUT" echo 'platforms=amd64,armhf,arm64' >> "$GITHUB_OUTPUT" else echo 'push=false' >> "$GITHUB_OUTPUT" |
