This commit is contained in:
Jannis Mattheis
2020-08-31 19:05:21 +02:00
parent 923030cf44
commit 126f395ae0
2 changed files with 13 additions and 3 deletions

View File

@@ -27,8 +27,12 @@ install:
script:
- make build-js
- make embed-static
- make test
- make check
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
- export VERSION=devel
- export LD_FLAGS="-w -s -X main.Version=${VERSION} -X main.BuildDate=$(date "+%F-%T") -X main.Commit=$(git rev-parse --verify HEAD) -X main.Mode=prod";
- make build-linux-arm-7
- sudo chown -R travis:travis build
- make build-docker-arm-7
after_success:
- bash <(curl -s https://codecov.io/bash)
@@ -44,6 +48,7 @@ before_deploy:
sudo chown -R travis:travis build
make package-zip;
ls -lath build;
docker run --rm --privileged multiarch/qemu-user-static:register --reset;
make build-docker;
fi

View File

@@ -1,5 +1,10 @@
FROM arm32v7/debian
ENV GOTIFY_SERVER_PORT="80"
WORKDIR /app
RUN apt-get update
RUN apt-get install -y curl
RUN rm -rf /var/lib/apt/lists/*
ADD gotify-app /app/
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s CMD curl --fail http://localhost:$GOTIFY_SERVER_PORT/health || exit 1
EXPOSE 80
ENTRYPOINT ["./gotify-app"]
ENTRYPOINT ["./gotify-app"]