mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 07:11:08 +00:00
build: Build Docker image for plain 32 bit arm (fixes #8973)
This commit is contained in:
parent
c44de2cd58
commit
cf68dfac43
13
.github/workflows/build-syncthing.yaml
vendored
13
.github/workflows/build-syncthing.yaml
vendored
@ -699,7 +699,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build binaries
|
- name: Build binaries
|
||||||
run: |
|
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 }}
|
go run build.go -goos linux -goarch "$arch" -no-upgrade build ${{ matrix.pkg }}
|
||||||
mv ${{ matrix.pkg }} ${{ matrix.pkg }}-linux-"$arch"
|
mv ${{ matrix.pkg }} ${{ matrix.pkg }}-linux-"$arch"
|
||||||
done
|
done
|
||||||
@ -707,8 +707,15 @@ jobs:
|
|||||||
CGO_ENABLED: "0"
|
CGO_ENABLED: "0"
|
||||||
BUILD_USER: docker
|
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
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
|
if: env.DOCKER_PUSH == 'true'
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
@ -739,6 +746,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ${{ matrix.dockerfile }}
|
file: ${{ matrix.dockerfile }}
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64,linux/arm/7
|
||||||
push: true
|
push: ${{ env.DOCKER_PUSH == 'true' }}
|
||||||
tags: ${{ env.DOCKER_TAGS }}
|
tags: ${{ env.DOCKER_TAGS }}
|
||||||
|
Loading…
Reference in New Issue
Block a user