-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from spowelljr/dynamicallyUpdateVersion
CI: Dynamically update version from git tag
- Loading branch information
Showing
10 changed files
with
76 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.20-alpine | ||
FROM golang:1.21-alpine | ||
WORKDIR /src/ | ||
COPY ./ ./ | ||
RUN apk -U add make git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
FROM golang:1.21 AS builder | ||
WORKDIR /app | ||
COPY Makefile ./ | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
COPY cmd/gopogh-server/main.go ./ | ||
COPY cmd/gopogh-server/main.go ./cmd/gopogh-server/main.go | ||
COPY pkg ./pkg | ||
RUN CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o /gopogh-server | ||
RUN make server | ||
|
||
FROM alpine:3 | ||
WORKDIR / | ||
RUN apk add --no-cache ca-certificates | ||
COPY --from=builder /gopogh-server /gopogh-server | ||
COPY --from=builder /app/out/gopogh-server /gopogh-server | ||
EXPOSE 8080 | ||
CMD ["/gopogh-server", "-use_cloudsql", "-use_iam_auth"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters