File tree Expand file tree Collapse file tree 2 files changed +37
-10
lines changed Expand file tree Collapse file tree 2 files changed +37
-10
lines changed Original file line number Diff line number Diff line change
1
+ name : KFP Manifests
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+ pull_request :
7
+ paths :
8
+ - ' .github/workflows/kubeflow-pipelines-manifests.yml'
9
+ - ' manifests/kustomize/**'
10
+
11
+ jobs :
12
+ kubeflow-pipelines-manifests :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout code
16
+ uses : actions/checkout@v4
17
+
18
+ - name : Run tests
19
+ run : ./manifests/kustomize/hack/presubmit.sh
Original file line number Diff line number Diff line change @@ -21,24 +21,32 @@ set -ex
21
21
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null && pwd) "
22
22
TMP=" $( mktemp -d) "
23
23
24
+ # Add TMP to PATH
25
+ PATH=" $TMP :$PATH "
26
+
24
27
pushd " ${TMP} "
25
- # Install Kustomize
28
+
29
+ # Install kustomize
26
30
KUSTOMIZE_VERSION=5.2.1
27
- # Reference: https://kubectl.docs.kubernetes.io/installation/kustomize/binaries/
28
- curl -s -O " https://raw.githubusercontent.com/\
29
- kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
30
- chmod +x install_kustomize.sh
31
- ./install_kustomize.sh " ${KUSTOMIZE_VERSION} " /usr/local/bin/
31
+ # Reference: https://github.com/kubernetes-sigs/kustomize/releases/tag/kustomize%2Fv5.2.1
32
+ curl -s -LO " https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv${KUSTOMIZE_VERSION} /kustomize_v${KUSTOMIZE_VERSION} _linux_amd64.tar.gz"
33
+ tar -xzf kustomize_v${KUSTOMIZE_VERSION} _linux_amd64.tar.gz
34
+ chmod +x kustomize
32
35
36
+ # Install yq
33
37
# Reference: https://github.com/mikefarah/yq/releases/tag/3.4.1
34
38
curl -s -LO " https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64"
35
39
chmod +x yq_linux_amd64
36
- mv yq_linux_amd64 /usr/local/bin/yq
40
+ mv yq_linux_amd64 yq
41
+
42
+ # Install kpt
43
+ KPT_VERSION=1.0.0-beta.54
44
+ # Reference: https://github.com/kptdev/kpt/releases/tag/v1.0.0-beta.54
45
+ curl -s -LO " https://github.com/kptdev/kpt/releases/download/v${KPT_VERSION} /kpt_linux_amd64"
46
+ chmod +x kpt_linux_amd64
47
+ mv kpt_linux_amd64 kpt
37
48
popd
38
49
39
- # kpt and kubectl should already be installed in gcr.io/google.com/cloudsdktool/cloud-sdk:latest
40
- # so we do not need to install them here
41
-
42
50
# trigger real unit tests
43
51
${DIR} /test.sh
44
52
# verify release script runs properly
You can’t perform that action at this time.
0 commit comments