Skip to content

Commit 6844659

Browse files
a-bjoaopapereira
authored andcommitted
Specify CFD version in integration tests workflow (#3272)
This allows to lock CFD in case incompatible changes in the latest release.
1 parent afa9dcb commit 6844659

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/tests-integration.yml

+16-6
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ on:
3737
description: Pre-provisioned environment lease namespace to use in tests
3838
required: false
3939
type: string
40+
cfd_version:
41+
description: Use specific version of CFD. Leave empty to use latest.
42+
default: ""
43+
type: string
4044
run_unit_tests:
4145
description: Run unit tests
4246
required: false
@@ -137,18 +141,24 @@ jobs:
137141
template_namespace: ${{ vars.SHEPHERD_TEMPLATE_NAMESPACE || 'official' }}
138142
lease_duration: ${{ vars.SHEPHERD_LEASE_DURATION || '8h' }}
139143
lease_namespace: ${{ inputs.lease_namespace || vars.SHEPHERD_LEASE_NAMESPACE || 'tas-devex' }}
144+
cfd_version: ${{ inputs.cfd_version || vars.CFD_VERSION || '' }}
140145
run: |
141146
shepherd login service-account ${account_token}
142147
143148
if [[ -z $SHEPHERD_LEASE_ID ]]; then
144149
145150
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+
)
152162
fi
153163
154164
lease_id=$( shepherd create lease \

0 commit comments

Comments
 (0)