mirror of
https://github.com/gotify/server.git
synced 2024-01-28 15:20:56 +03:00
Add linux/riscv64 project support
This commit is contained in:
committed by
Jannis Mattheis
parent
a8049f5138
commit
3fa1cffde3
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -52,9 +52,11 @@ jobs:
|
||||
docker push --all-tags gotify/server
|
||||
docker push --all-tags gotify/server-arm7
|
||||
docker push --all-tags gotify/server-arm64
|
||||
docker push --all-tags gotify/server-riscv64
|
||||
docker push --all-tags ghcr.io/gotify/server
|
||||
docker push --all-tags ghcr.io/gotify/server-arm7
|
||||
docker push --all-tags ghcr.io/gotify/server-arm64
|
||||
docker push --all-tags ghcr.io/gotify/server-riscv64
|
||||
env:
|
||||
DOCKER_USER: ${{ secrets.DOCKER_USER }}
|
||||
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
|
||||
|
||||
21
Makefile
21
Makefile
@@ -110,7 +110,21 @@ build-docker-arm64: require-version
|
||||
-t ghcr.io/gotify/server-arm64:$(shell echo $(VERSION) | cut -d '.' -f -1) .
|
||||
rm ${DOCKER_DIR}gotify-app
|
||||
|
||||
build-docker: build-docker-amd64 build-docker-arm-7 build-docker-arm64
|
||||
build-docker-riscv64: require-version
|
||||
cp ${BUILD_DIR}/gotify-linux-riscv64 ./docker/gotify-app
|
||||
cd ${DOCKER_DIR} && \
|
||||
docker build -f Dockerfile.riscv64 \
|
||||
-t gotify/server-riscv64:latest \
|
||||
-t gotify/server-riscv64:${VERSION} \
|
||||
-t gotify/server-riscv64:$(shell echo $(VERSION) | cut -d '.' -f -2) \
|
||||
-t gotify/server-riscv64:$(shell echo $(VERSION) | cut -d '.' -f -1) \
|
||||
-t ghcr.io/gotify/server-riscv64:latest \
|
||||
-t ghcr.io/gotify/server-riscv64:${VERSION} \
|
||||
-t ghcr.io/gotify/server-riscv64:$(shell echo $(VERSION) | cut -d '.' -f -2) \
|
||||
-t ghcr.io/gotify/server-riscv64:$(shell echo $(VERSION) | cut -d '.' -f -1) .
|
||||
rm ${DOCKER_DIR}gotify-app
|
||||
|
||||
build-docker: build-docker-amd64 build-docker-arm-7 build-docker-arm64 build-docker-riscv64
|
||||
|
||||
build-js:
|
||||
(cd ui && yarn build)
|
||||
@@ -127,12 +141,15 @@ build-linux-arm-7:
|
||||
build-linux-arm64:
|
||||
${DOCKER_RUN} ${DOCKER_BUILD_IMAGE}:$(GO_VERSION)-linux-arm64 ${DOCKER_GO_BUILD} -o ${BUILD_DIR}/gotify-linux-arm64 ${DOCKER_WORKDIR}
|
||||
|
||||
build-linux-riscv64:
|
||||
${DOCKER_RUN} ${DOCKER_BUILD_IMAGE}:$(GO_VERSION)-linux-riscv64 ${DOCKER_GO_BUILD} -o ${BUILD_DIR}/gotify-linux-riscv64 ${DOCKER_WORKDIR}
|
||||
|
||||
build-windows-amd64:
|
||||
${DOCKER_RUN} ${DOCKER_BUILD_IMAGE}:$(GO_VERSION)-windows-amd64 ${DOCKER_GO_BUILD} -o ${BUILD_DIR}/gotify-windows-amd64.exe ${DOCKER_WORKDIR}
|
||||
|
||||
build-windows-386:
|
||||
${DOCKER_RUN} ${DOCKER_BUILD_IMAGE}:$(GO_VERSION)-windows-386 ${DOCKER_GO_BUILD} -o ${BUILD_DIR}/gotify-windows-386.exe ${DOCKER_WORKDIR}
|
||||
|
||||
build: build-linux-arm-7 build-linux-amd64 build-linux-386 build-linux-arm64 build-windows-amd64 build-windows-386
|
||||
build: build-linux-arm-7 build-linux-amd64 build-linux-386 build-linux-arm64 build-linux-riscv64 build-windows-amd64 build-windows-386
|
||||
|
||||
.PHONY: test-race test-coverage test check-go check-js verify-swagger check download-tools update-swagger package-zip build-docker build-js build
|
||||
|
||||
5
docker/Dockerfile.riscv64
Normal file
5
docker/Dockerfile.riscv64
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM riscv64/debian:sid-slim
|
||||
WORKDIR /app
|
||||
ADD gotify-app /app/
|
||||
EXPOSE 80
|
||||
ENTRYPOINT ["./gotify-app"]
|
||||
Reference in New Issue
Block a user