mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
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:
@@ -1,6 +1,6 @@
|
||||
defaults_go: &DEFAULTS_GO
|
||||
language: go
|
||||
go: "1.10.3"
|
||||
go: "1.11"
|
||||
cache:
|
||||
directories:
|
||||
- vendor
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user