Skip to content

Commit 00c2b39

Browse files
[build] fixed private build (#12)
Signed-off-by: Aleksey Gavrilov <[email protected]>
1 parent 21b9d4c commit 00c2b39

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11

22
{{- define "alt packages proxy" }}
33
{{- end }}
4+
5+
{{- define "alpine packages proxy" }}
6+
{{- end }}

images/snapshot-controller/werf.inc.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ secrets:
4646
value: {{ .GOPROXY }}
4747

4848
shell:
49-
beforeInstall:
50-
- apk add --no-cache make bash git
49+
beforeInstall:
50+
{{- include "alpine packages proxy" . | nindent 2 }}
51+
- apk add --no-cache make bash git
5152
install:
5253
- cd /src/snapshot-controller
53-
- GO_VERSION=$(cat /run/secrets/GOLANG_VERSION) CGO_ENABLED=0 GOOS=linux GOARCH=amd64
54+
- export GO_VERSION=$(cat /run/secrets/GOLANG_VERSION) CGO_ENABLED=0 GOOS=linux GOARCH=amd64
5455
- GOPROXY=$(cat /run/secrets/GOPROXY) go mod download
5556
- make build
5657
- cp bin/snapshot-controller bin/csi-snapshotter bin/snapshot-validation-webhook /

images/snapshot-validation-webhook/werf.inc.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ secrets:
4646
value: {{ .GOPROXY }}
4747

4848
shell:
49-
beforeInstall:
50-
- apk add --no-cache make bash git
49+
beforeInstall:
50+
{{- include "alpine packages proxy" . | nindent 2 }}
51+
- apk add --no-cache make bash git
5152
install:
5253
- cd /src/snapshot-controller
53-
- GO_VERSION=$(cat /run/secrets/GOLANG_VERSION) CGO_ENABLED=0 GOOS=linux GOARCH=amd64
54+
- export GO_VERSION=$(cat /run/secrets/GOLANG_VERSION) CGO_ENABLED=0 GOOS=linux GOARCH=amd64
5455
- GOPROXY=$(cat /run/secrets/GOPROXY) go mod download
5556
- make build
5657
- cp bin/snapshot-controller bin/csi-snapshotter bin/snapshot-validation-webhook /

0 commit comments

Comments
 (0)