aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2023-07-08 10:33:40 +0200
committerJakob Borg <jakob@kastelo.net>2023-07-08 10:55:09 +0200
commitcf68dfac43585c4c3b71bd3507bba3952df585e2 (patch)
tree7d7b9f9fd79e5fb60a6a5aac07f6d8f6165f609d
parentc44de2cd583cf36b4e4f0f984c1e524c14984138 (diff)
downloadsyncthing-cf68dfac43585c4c3b71bd3507bba3952df585e2.tar.gz
syncthing-cf68dfac43585c4c3b71bd3507bba3952df585e2.zip
build: Build Docker image for plain 32 bit arm (fixes #8973)
-rw-r--r--.github/workflows/build-syncthing.yaml13
1 files changed, 10 insertions, 3 deletions
diff --git a/.github/workflows/build-syncthing.yaml b/.github/workflows/build-syncthing.yaml
index 198101263..d5001a289 100644
--- a/.github/workflows/build-syncthing.yaml
+++ b/.github/workflows/build-syncthing.yaml
@@ -699,7 +699,7 @@ jobs:
- name: Build binaries
run: |
- for arch in arm64 amd64; do
+ for arch in amd64 arm64 arm; do
go run build.go -goos linux -goarch "$arch" -no-upgrade build ${{ matrix.pkg }}
mv ${{ matrix.pkg }} ${{ matrix.pkg }}-linux-"$arch"
done
@@ -707,8 +707,15 @@ jobs:
CGO_ENABLED: "0"
BUILD_USER: docker
+ - name: Check if we will be able to push images
+ run: |
+ if [[ "${{ secrets.DOCKERHUB_TOKEN }}" != "" ]]; then
+ echo "DOCKER_PUSH=true" >> $GITHUB_ENV;
+ fi
+
- name: Login to Docker Hub
uses: docker/login-action@v2
+ if: env.DOCKER_PUSH == 'true'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -739,6 +746,6 @@ jobs:
with:
context: .
file: ${{ matrix.dockerfile }}
- platforms: linux/amd64,linux/arm64
- push: true
+ platforms: linux/amd64,linux/arm64,linux/arm/7
+ push: ${{ env.DOCKER_PUSH == 'true' }}
tags: ${{ env.DOCKER_TAGS }}