Skip to content

Commit 6525b9a

Browse files
authored
[internal] csi-driver-nfs patching has been moved (#65)
Signed-off-by: Pavel Karpov <[email protected]>
1 parent f7dc3df commit 6525b9a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

images/csi-nfs/werf.inc.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,20 @@ git:
1919
install:
2020
- '**/*'
2121
- add: /
22-
to: /src
22+
to: /patches
2323
includePaths:
2424
- images/{{ $.ImageName }}/patches
2525
stageDependencies:
2626
install:
2727
- '**/*'
2828
shell:
29+
beforeInstall:
30+
- apt-get update
31+
- apt-get install -y git
32+
- {{ $.Root.ALT_CLEANUP_CMD }}
2933
install:
34+
- cd /src/csi-driver-nfs
35+
- for patchfile in /patches/images/{{ $.ImageName }}/patches/*.patch; do echo "Apply ${patchfile} ... "; git apply ${patchfile} --verbose; done
3036
- rm -rf /src/csi-driver-nfs/.git
3137
- rm -rf /src/nfs-utils/.git
3238

@@ -98,7 +104,6 @@ shell:
98104
setup:
99105
- cd /src/csi-driver-nfs
100106
- export CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO_VERSION={{ env "GOLANG_VERSION" }} GOPROXY={{ env "GOPROXY" }}
101-
- for patchfile in /src/images/{{ $.ImageName }}/patches/*.patch ; do echo -n "Apply ${patchfile} ... "; git apply ${patchfile}; done
102107
- go mod vendor
103108
- go build -ldflags="-s -w" -o /nfsplugin ./cmd/nfsplugin
104109
- chmod +x /nfsplugin

0 commit comments

Comments
 (0)