From 9c2d6554abd255a430cebaa11e6a2b00302e5d90 Mon Sep 17 00:00:00 2001 From: AL Berez Date: Wed, 30 Oct 2024 07:35:46 -0700 Subject: [PATCH] Specify CFD version in integration tests workflow (#3272) This allows to lock CFD in case incompatible changes in the latest release. --- .github/workflows/tests-integration.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests-integration.yml b/.github/workflows/tests-integration.yml index 3a49be50b8..cd4415a720 100644 --- a/.github/workflows/tests-integration.yml +++ b/.github/workflows/tests-integration.yml @@ -37,6 +37,10 @@ on: description: Pre-provisioned environment lease namespace to use in tests required: false type: string + cfd_version: + description: Use specific version of CFD. Leave empty to use latest. + default: "" + type: string run_unit_tests: description: Run unit tests required: false @@ -137,18 +141,24 @@ jobs: template_namespace: ${{ vars.SHEPHERD_TEMPLATE_NAMESPACE || 'official' }} lease_duration: ${{ vars.SHEPHERD_LEASE_DURATION || '8h' }} lease_namespace: ${{ inputs.lease_namespace || vars.SHEPHERD_LEASE_NAMESPACE || 'tas-devex' }} + cfd_version: ${{ inputs.cfd_version || vars.CFD_VERSION || '' }} run: | shepherd login service-account ${account_token} if [[ -z $SHEPHERD_LEASE_ID ]]; then if [ -z "$template_argument" ]; then - export template_argument='{"gcp_region": "us-west2", - "vm_type": "n1-standard-8", - "root_disk_gb": 32, - "disk_pool_gb": 150, - "cfd_version": "", - "additional_opsfiles_b64": ""}' + export template_argument=$(cat <