File tree Expand file tree Collapse file tree 4 files changed +12
-13
lines changed Expand file tree Collapse file tree 4 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,6 @@ builds:
35
35
- -w
36
36
goos :
37
37
- linux
38
- - windows
39
- - darwin
40
38
goarch :
41
39
- amd64
42
40
- arm64
@@ -47,9 +45,6 @@ builds:
47
45
archives :
48
46
- name_template : ' {{ .ProjectName }}_v{{trimprefix .Version "v"}}_{{ .Os }}_{{ .Arch }}'
49
47
rlcp : true
50
- format_overrides :
51
- - goos : windows
52
- format : zip
53
48
builds :
54
49
- capi-runtime-extensions
55
50
dockers :
Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ kustomize 4.5.7
9
9
pre-commit 3.0.2
10
10
shfmt 3.6.0
11
11
upx 4.0.2
12
+ gcloud 416.0.0
Original file line number Diff line number Diff line change 3
3
# Copyright 2023 D2iQ, Inc. All rights reserved.
4
4
# SPDX-License-Identifier: Apache-2.0
5
5
6
- # Production image
7
- FROM gcr.io/distroless/static:nonroot
8
- WORKDIR /
9
- COPY /bin/manager .
6
+ FROM --platform=linux/amd64 gcr.io/distroless/static@sha256:39e460e64a929bb6d08a7b899eb76c78c17a487b84f7cfe5191415473423471f as linux-amd64
7
+ FROM --platform=linux/arm64 gcr.io/distroless/static@sha256:b5e90ec08ae3e1e72b28a92caf75e9e9f6eae54624e34486155349843d420126 as linux-arm64
8
+
9
+ FROM --platform=linux/${TARGETARCH} linux-${TARGETARCH}
10
+
11
+ COPY capi-runtime-extensions /usr/local/bin/capi-runtime-extensions
12
+
10
13
# Use uid of nonroot user (65532) because kubernetes expects numeric user when applying pod security policies
11
14
USER 65532
12
- ENTRYPOINT ["/manager " ]
15
+ ENTRYPOINT ["/usr/local/bin/capi-runtime-extensions " ]
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ build-snapshot: dockerauth install-tool.goreleaser install-tool.golang go-genera
14
14
goreleaser --debug=$(GORELEASER_DEBUG ) \
15
15
build \
16
16
--snapshot \
17
- --rm-dist \
17
+ --clean \
18
18
--parallelism=$(GORELEASER_PARALLELISM ) \
19
19
$(if $(BUILD_ALL ) ,,--single-target) \
20
20
--skip-post-hooks
@@ -24,7 +24,7 @@ release: ## Builds a release with goreleaser
24
24
release : dockerauth install-tool.goreleaser install-tool.golang go-generate ; $(info $(M ) building release $* )
25
25
goreleaser --debug=$(GORELEASER_DEBUG ) \
26
26
release \
27
- --rm-dist \
27
+ --clean \
28
28
--parallelism=$(GORELEASER_PARALLELISM ) \
29
29
--timeout=60m \
30
30
$(GORELEASER_FLAGS )
@@ -36,6 +36,6 @@ release-snapshot: dockerauth install-tool.goreleaser install-tool.golang go-gene
36
36
release \
37
37
--snapshot \
38
38
--skip-publish \
39
- --rm-dist \
39
+ --clean \
40
40
--parallelism=$(GORELEASER_PARALLELISM ) \
41
41
--timeout=60m
You can’t perform that action at this time.
0 commit comments