Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 06f7d21

Browse files
authored
fix: goreleaser docker file add hack script (#50)
1 parent a31e810 commit 06f7d21

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.goreleaser.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ changelog:
3737
# for more information on what this target does: https://goreleaser.com/errors/docker-build/
3838
dockers:
3939
- id: linux-build
40+
extra_files:
41+
- ./hack/entrypoint.sh
4042
image_templates:
4143
- "{{ .Env.REGISTRY }}/open-component-model/{{ .ProjectName }}:{{ .Tag }}"
4244
- "{{ .Env.REGISTRY }}/open-component-model/{{ .ProjectName }}:latest"

Tiltfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ if str(local("command -v " + kubectl_cmd + " || true", quiet = True)) == "":
99
# set defaults
1010
settings = {
1111
"root_certificate_secret": {
12-
"enable": False,
13-
"name": "registry-cert",
12+
"enable": True,
13+
"name": "registry-certs",
1414
},
1515
}
1616

goreleaser.dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM gcr.io/distroless/static:nonroot
22
WORKDIR /
33
COPY git-controller /manager
4+
COPY ./hack/entrypoint.sh /entrypoint.sh
45
USER 65532:65532
56

6-
ENTRYPOINT ["/manager"]
7+
ENTRYPOINT ["/entrypoint.sh"]
8+
CMD ["/manager"]

0 commit comments

Comments
 (0)