mirror of https://github.com/statping/statping
parent
3515c6f56b
commit
04881c9c40
|
@ -17,7 +17,7 @@ services:
|
|||
- mongodb
|
||||
|
||||
env:
|
||||
- VERSION=0.13
|
||||
- VERSION=0.14
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
|
@ -37,6 +37,7 @@ deploy:
|
|||
- "build/statup-linux-x64"
|
||||
- "build/statup-linux-x32"
|
||||
- "build/statup-windows-x64.exe"
|
||||
- "build/statup-linux-static"
|
||||
skip_cleanup: true
|
||||
|
||||
notifications:
|
||||
|
|
10
Dockerfile
10
Dockerfile
|
@ -1,12 +1,10 @@
|
|||
FROM alpine
|
||||
|
||||
RUN apk add --no-cache libc6-compat
|
||||
#RUN apk add --no-cache libc6-compat
|
||||
|
||||
ENV VERSION="v0.13"
|
||||
|
||||
WORKDIR /app
|
||||
RUN wget -q https://github.com/hunterlong/statup/releases/download/$VERSION/statup-linux-x64
|
||||
RUN chmod +x statup-linux-x64 && mv statup-linux-x64 /usr/local/bin/statup
|
||||
ENV VERSION="v0.14"
|
||||
#RUN wget -q https://github.com/hunterlong/statup/releases/download/$VERSION/statup-linux-static
|
||||
#RUN chmod +x statup-linux-static && mv statup-linux-static /usr/local/bin/statup
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
|
|
1
build.sh
1
build.sh
|
@ -14,6 +14,7 @@ xgo --targets=linux/386 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
|
|||
|
||||
xgo --targets=windows/amd64 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
|
||||
|
||||
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o build/statup-linux-static .
|
||||
|
||||
cd build
|
||||
ls
|
||||
|
|
Loading…
Reference in New Issue