aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-16 20:57:58 +0500
committerEgor Tensin <egor@tensin.name>2026-10-16 20:57:58 +0500
commit109ed841d2b487d1241797d432a99b659bda6409 (patch)
tree60bf618f8fad7b7e8f308b37bd1238145fa83c46 /.github/workflows/ci.yml
parentworkflows/ci: proper tags for Docker Hub images (diff)
downloadmath-server-109ed841d2b487d1241797d432a99b659bda6409.tar.gz
math-server-109ed841d2b487d1241797d432a99b659bda6409.zip
workflows/ci: build Docker images for ARM for tags onlyv1.0.1
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml5
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"