-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add build arg for version/hash to devspace and dockerfiles, bu…
…mp go/debian versions in dockerfiles, dockerfile consistency stuff (#26) * chore: add build arg for version/hash to devspace and dockerfiles, bump go/debian versions in dockerfiles, dockerfile consistency stuff * chore: rename dockerfiles so github is smart enough to highlight things (boo github) * chore: bump go version in actions, only push images/chart if on main
- Loading branch information
1 parent
6de7f5d
commit d11eaea
Showing
11 changed files
with
108 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
workflow_dispatch: {} | ||
|
||
env: | ||
GO_VERSION: "1.20" | ||
GO_VERSION: "1.21" | ||
|
||
jobs: | ||
lint: | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
- created | ||
|
||
env: | ||
GO_VERSION: "1.20" | ||
GO_VERSION: "1.21" | ||
|
||
jobs: | ||
release: | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
workflow_dispatch: {} | ||
|
||
env: | ||
GO_VERSION: "1.20" | ||
GO_VERSION: "1.21" | ||
|
||
jobs: | ||
test: | ||
|
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM golang:1.21-bookworm as builder | ||
|
||
ARG VERSION | ||
|
||
WORKDIR /clabernetes | ||
|
||
RUN mkdir build | ||
|
||
COPY cmd/clabverter/main.go main.go | ||
|
||
COPY . . | ||
|
||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
|
||
RUN go mod download | ||
|
||
RUN CGO_ENABLED=0 \ | ||
go build \ | ||
-ldflags "-s -w -X github.com/srl-labs/clabernetes/constants.Version=${VERSION}" \ | ||
-trimpath \ | ||
-a \ | ||
-o \ | ||
build/clabverter \ | ||
main.go | ||
|
||
FROM gcr.io/distroless/static-debian12:nonroot | ||
|
||
WORKDIR /clabernetes | ||
COPY --from=builder /clabernetes/build/clabverter . | ||
USER nonroot:nonroot | ||
|
||
ENTRYPOINT ["/clabernetes/clabverter", "run"] |
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 was deleted.
Oops, something went wrong.