Merge pull request #72 from prymitive/go-1.11

chore(golang): use Go 1.11 when testing and building Docker images
This commit is contained in:
Łukasz Mierzwa
2018-08-28 19:23:05 +01:00
committed by GitHub
3 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
defaults_go: &DEFAULTS_GO
language: go
go: "1.10.3"
go: "1.11"
cache:
directories:
- vendor

View File

@@ -3,7 +3,7 @@ RUN apk add --update make git
COPY . /unsee
RUN make -C /unsee ui
FROM golang:1.10.3-alpine as go-builder
FROM golang:1.11.0-alpine as go-builder
COPY --from=nodejs-builder /unsee /go/src/github.com/prymitive/unsee
ARG VERSION
RUN apk add --update make git

View File

@@ -95,18 +95,18 @@ func (config *configSchema) Read() {
// HOST and PORT is used by gin
err = v.BindEnv("listen.address", "HOST")
if err != nil {
log.Errorf("Failed to bind listen.address config key to the HOST env variable", err)
log.Errorf("Failed to bind listen.address config key to the HOST env variable: %s", err)
}
err = v.BindEnv("listen.port", "PORT")
if err != nil {
log.Errorf("Failed to bind listen.port config key to the PORT env variable", err)
log.Errorf("Failed to bind listen.port config key to the PORT env variable: %s", err)
}
// raven-go expects this
err = v.BindEnv("sentry.private", "SENTRY_DSN")
if err != nil {
log.Errorf("Failed to bind sentry.private config key to the SENTRY_DSN env variable", err)
log.Errorf("Failed to bind sentry.private config key to the SENTRY_DSN env variable: %s", err)
}
configFile := v.GetString("config.file")