Skip to content

Commit 6a74bc2

Browse files
authored
feat: release CLI as container image (#487)
Signed-off-by: Miguel Martinez Trivino <[email protected]>
1 parent 5e2d339 commit 6a74bc2

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.goreleaser.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ dockers:
107107
image_templates:
108108
- "ghcr.io/chainloop-dev/chainloop/artifact-cas:{{ .Tag }}"
109109
- "ghcr.io/chainloop-dev/chainloop/artifact-cas:latest"
110+
- dockerfile: app/cli/Dockerfile.goreleaser
111+
ids:
112+
- cli
113+
image_templates:
114+
- "ghcr.io/chainloop-dev/chainloop/cli:{{ .Tag }}"
115+
- "ghcr.io/chainloop-dev/chainloop/cli:latest"
110116

111117
release:
112118
extra_files:

app/cli/Dockerfile.goreleaser

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM golang:1.21@sha256:afccce40fb4a6b6a80d0386d6296737c68207f8d69086d0e16aa9cb9dbb753db AS builder
2+
3+
FROM scratch
4+
5+
COPY ./chainloop /
6+
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
7+
8+
ENTRYPOINT [ "./chainloop"]

0 commit comments

Comments
 (0)