From 2f17b3d1f07e1dd57901adf79a9703ed4968d1e3 Mon Sep 17 00:00:00 2001 From: Craig O'Donnell Date: Fri, 19 Jan 2024 16:14:23 +0000 Subject: [PATCH] set expires_on for regression tests --- .github/workflows/regression.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/regression.yaml b/.github/workflows/regression.yaml index b9267c1243..f5926c42bf 100644 --- a/.github/workflows/regression.yaml +++ b/.github/workflows/regression.yaml @@ -108,7 +108,10 @@ jobs: - name: Create Jumpbox Environment if: always() working-directory: automation/jumpbox - run: terraform apply --auto-approve + run: | + TF_VAR_expires_on="$(date -d '2 days' '+%Y-%m-%d')" + export TF_VAR_expires_on + terraform apply --auto-approve - name: Notify Slack if: failure() && github.ref_name == 'main' uses: 8398a7/action-slack@v3 @@ -242,6 +245,8 @@ jobs: fi export TF_VAR_kots_addon_package_url="${{ github.event.inputs.addon_package_url || inputs.addon_package_url }}" export TF_VAR_testim_branch="master" + TF_VAR_expires_on="$(date -d '2 days' '+%Y-%m-%d')" + export TF_VAR_expires_on ./${{ matrix.test.terraform_script }} apply - name: Wait for instance to be ready working-directory: automation/cluster