mirror of https://github.com/statping/statping
parent
3515c6f56b
commit
04881c9c40
|
@ -17,7 +17,7 @@ services:
|
||||||
- mongodb
|
- mongodb
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- VERSION=0.13
|
- VERSION=0.14
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
|
@ -37,6 +37,7 @@ deploy:
|
||||||
- "build/statup-linux-x64"
|
- "build/statup-linux-x64"
|
||||||
- "build/statup-linux-x32"
|
- "build/statup-linux-x32"
|
||||||
- "build/statup-windows-x64.exe"
|
- "build/statup-windows-x64.exe"
|
||||||
|
- "build/statup-linux-static"
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
|
10
Dockerfile
10
Dockerfile
|
@ -1,12 +1,10 @@
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
RUN apk add --no-cache libc6-compat
|
#RUN apk add --no-cache libc6-compat
|
||||||
|
|
||||||
ENV VERSION="v0.13"
|
ENV VERSION="v0.14"
|
||||||
|
#RUN wget -q https://github.com/hunterlong/statup/releases/download/$VERSION/statup-linux-static
|
||||||
WORKDIR /app
|
#RUN chmod +x statup-linux-static && mv statup-linux-static /usr/local/bin/statup
|
||||||
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
|
|
||||||
|
|
||||||
EXPOSE 8080
|
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" ./
|
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
|
cd build
|
||||||
ls
|
ls
|
||||||
|
|
1
web.go
1
web.go
|
@ -320,7 +320,6 @@ func ServicesBadgeHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func ServicesViewHandler(w http.ResponseWriter, r *http.Request) {
|
func ServicesViewHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
auth := IsAuthenticated(r)
|
auth := IsAuthenticated(r)
|
||||||
vars := mux.Vars(r)
|
vars := mux.Vars(r)
|
||||||
|
|
Loading…
Reference in New Issue