From 2ed196c1f6fe15c1272f38862d145cf3f58ed69b Mon Sep 17 00:00:00 2001 From: AL Berez Date: Wed, 30 Oct 2024 07:36:44 -0700 Subject: [PATCH] Specify CFD version in integration tests workflow (#3273) 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 b041403645..a869441058 100644 --- a/.github/workflows/tests-integration.yml +++ b/.github/workflows/tests-integration.yml @@ -38,6 +38,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 @@ -133,18 +137,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 <