pull/10/head v0.14
Hunter Long 2018-06-18 02:53:18 -07:00
parent 3515c6f56b
commit 04881c9c40
5 changed files with 19 additions and 20 deletions

View File

@ -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:

View File

@ -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

View File

@ -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

1
web.go
View File

@ -320,7 +320,6 @@ func ServicesBadgeHandler(w http.ResponseWriter, r *http.Request) {
}
func ServicesViewHandler(w http.ResponseWriter, r *http.Request) {
auth := IsAuthenticated(r)
vars := mux.Vars(r)