File tree 1 file changed +16
-6
lines changed
1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change 37
37
description : Pre-provisioned environment lease namespace to use in tests
38
38
required : false
39
39
type : string
40
+ cfd_version :
41
+ description : Use specific version of CFD. Leave empty to use latest.
42
+ default : " "
43
+ type : string
40
44
run_unit_tests :
41
45
description : Run unit tests
42
46
required : false
@@ -137,18 +141,24 @@ jobs:
137
141
template_namespace : ${{ vars.SHEPHERD_TEMPLATE_NAMESPACE || 'official' }}
138
142
lease_duration : ${{ vars.SHEPHERD_LEASE_DURATION || '8h' }}
139
143
lease_namespace : ${{ inputs.lease_namespace || vars.SHEPHERD_LEASE_NAMESPACE || 'tas-devex' }}
144
+ cfd_version : ${{ inputs.cfd_version || vars.CFD_VERSION || '' }}
140
145
run : |
141
146
shepherd login service-account ${account_token}
142
147
143
148
if [[ -z $SHEPHERD_LEASE_ID ]]; then
144
149
145
150
if [ -z "$template_argument" ]; then
146
- export template_argument='{"gcp_region": "us-west2",
147
- "vm_type": "n1-standard-8",
148
- "root_disk_gb": 32,
149
- "disk_pool_gb": 150,
150
- "cfd_version": "",
151
- "additional_opsfiles_b64": ""}'
151
+ export template_argument=$(cat <<EOF
152
+ {
153
+ "gcp_region": "us-west2",
154
+ "vm_type": "n1-standard-8",
155
+ "root_disk_gb": 32,
156
+ "disk_pool_gb": 150,
157
+ "cfd_version": "${cfd_version}",
158
+ "additional_opsfiles_b64": ""
159
+ }
160
+ EOF
161
+ )
152
162
fi
153
163
154
164
lease_id=$( shepherd create lease \
You can’t perform that action at this time.
0 commit comments