Skip to content

Commit

Permalink
set expires_on for regression tests (#4372)
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig O'Donnell authored Jan 19, 2024
1 parent 695fd10 commit 3d02ee0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3d02ee0

Please sign in to comment.