Add armv7 docker build
This commit is contained in:
parent
3069867fcc
commit
7cf5c555f5
9
Makefile
9
Makefile
|
|
@ -71,11 +71,18 @@ package-zip: extract-licenses
|
||||||
zip -ur $$BUILD.zip ${LICENSE_DIR}; \
|
zip -ur $$BUILD.zip ${LICENSE_DIR}; \
|
||||||
done
|
done
|
||||||
|
|
||||||
build-docker: require-version
|
build-docker-amd64: require-version
|
||||||
cp ${BUILD_DIR}/gotify-linux-amd64 ./docker/gotify-app
|
cp ${BUILD_DIR}/gotify-linux-amd64 ./docker/gotify-app
|
||||||
(cd ${DOCKER_DIR} && docker build -t gotify/server:latest -t gotify/server:${VERSION} .)
|
(cd ${DOCKER_DIR} && docker build -t gotify/server:latest -t gotify/server:${VERSION} .)
|
||||||
rm ${DOCKER_DIR}gotify-app
|
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:
|
build-js:
|
||||||
(cd ui && yarn build)
|
(cd ui && yarn build)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,3 +2,4 @@
|
||||||
|
|
||||||
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
|
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
|
||||||
docker push gotify/server
|
docker push gotify/server
|
||||||
|
docker push gotify/server-arm7
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
FROM arm32v7/debian
|
||||||
|
WORKDIR /app
|
||||||
|
ADD gotify-app /app/
|
||||||
|
ENTRYPOINT ["./gotify-app"]
|
||||||
Loading…
Reference in New Issue