Skip to content

Commit

Permalink
ci: fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed Jul 25, 2021
1 parent 9c2c902 commit 078787c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ COPY ./ ./
RUN CGO_ENABLED=0 go build -ldflags="-extldflags '-static' -s -w" ./cmd/get-release-server/

FROM scratch
WORKDIR /app

COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /app/get-release-server .
Expand Down
2 changes: 2 additions & 0 deletions cmd/get-release-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ var client *release.GithubClient
func init() {
if ba := os.Getenv("BIND_ADDRESS"); ba != "" {
bindAddress = ba
} else if port := os.Getenv("PORT"); port != "" {
bindAddress = ":" + port
}
client = release.NewClient(os.Getenv("GITHUB_TOKEN"))
}
Expand Down

0 comments on commit 078787c

Please sign in to comment.