File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,16 +13,18 @@ inputs:
1313 required : false
1414 default : " 2"
1515 description : " Minikube CPU allocation"
16+ OLM_VERSION :
17+ required : false
18+ default : " v0.42.0"
19+ description : " Version of OLM to install"
20+ OLM_SCRIPT_SHA256 :
21+ required : false
22+ default : " 1e8065cb503d2ee94ce82dd2591618022852f53a43df908b9f8c7d314cff3532"
23+ description : " OLM installation script SHA256 hash"
1624
1725runs :
1826 using : " composite"
1927 steps :
20- - name : Install yq for deployment scripts
21- shell : bash
22- run : |
23- curl -L https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 > yq && chmod +x yq
24- sudo cp -v yq /usr/bin/
25-
2628 - name : Start Minikube
2729 id : minikube
2830 uses : medyagh/setup-minikube@latest
6365
6466 - name : Setup OLM
6567 shell : bash
68+ env :
69+ OLM_VERSION : " ${{ inputs.OLM_VERSION }}"
70+ OLM_SCRIPT_SHA256 : " ${{ inputs.OLM_SCRIPT_SHA256 }}"
6671 run : |
67- curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.28.0/install.sh | bash -s v0.28.0
72+ curl \
73+ --proto "=https" \
74+ --tlsv1.3 \
75+ -o install.sh \
76+ -sL \
77+ https://github.com/operator-framework/operator-lifecycle-manager/releases/download/${OLM_VERSION}/install.sh
78+
79+ echo "${OLM_SCRIPT_SHA256} ./install.sh" | sha256sum --check --status || { echo "Hash verification failed"; exit 1; }
80+ chmod +x ./install.sh
81+
82+ ./install.sh ${OLM_VERSION}
Original file line number Diff line number Diff line change 66env :
77 TARGET_NAMESPACE : " console-namespace"
88 CI_CLUSTER : true
9- OLM_VERSION : " v0.28.0"
10- YQ_VERSION : " v4.44.1"
119
1210jobs :
1311 Test :
Original file line number Diff line number Diff line change 8282 ENVS : ${{ github.event.inputs.envs }}
8383 CO_NAMESPACE : " co-namespace"
8484 OLM_MINIKUBE_NAMESPACE : " olm"
85- OLM_VERSION : " v0.28.0"
86- YQ_VERSION : " v4.44.1"
8785 steps :
8886 - name : Checkout
8987 uses : actions/checkout@v6
You can’t perform that action at this time.
0 commit comments