Add armv7 docker build

This commit is contained in:
Jannis Mattheis 2019-09-28 19:26:27 +02:00
parent 3069867fcc
commit 7cf5c555f5
3 changed files with 14 additions and 2 deletions

View File

@ -71,11 +71,18 @@ package-zip: extract-licenses
zip -ur $$BUILD.zip ${LICENSE_DIR}; \
done
build-docker: require-version
build-docker-amd64: require-version
cp ${BUILD_DIR}/gotify-linux-amd64 ./docker/gotify-app
(cd ${DOCKER_DIR} && docker build -t gotify/server:latest -t gotify/server:${VERSION} .)
rm ${DOCKER_DIR}gotify-app
build-docker-arm-7: require-version
cp ${BUILD_DIR}/gotify-linux-arm-7 ./docker/gotify-app
(cd ${DOCKER_DIR} && docker build -f Dockerfile.armv7 -t gotify/server-arm7:latest -t gotify/server-arm7:${VERSION} .)
rm ${DOCKER_DIR}gotify-app
build-docker: build-docker-amd64 build-docker-arm-7
build-js:
(cd ui && yarn build)

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
docker push gotify/server
docker push gotify/server
docker push gotify/server-arm7

4
docker/Dockerfile.armv7 Normal file
View File

@ -0,0 +1,4 @@
FROM arm32v7/debian
WORKDIR /app
ADD gotify-app /app/
ENTRYPOINT ["./gotify-app"]