Disable demo infrastructure drift check

This changeset disables the infrastructure drift check for our demo environment because we are no longer using the demo environment, and the infrastructure is in a known broken state.  More work will follow on in the future to clean things up fully.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2025-10-29 10:27:59 -04:00
parent aeef6bddcd
commit fe3c54707c

View File

@@ -44,44 +44,44 @@ jobs:
exit $exit_code exit $exit_code
fi fi
check_demo_drift: # check_demo_drift:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
name: Check for drift of demo terraform configuration # name: Check for drift of demo terraform configuration
environment: demo # environment: demo
steps: # steps:
- name: Checkout # - name: Checkout
uses: actions/checkout@v4 # uses: actions/checkout@v4
with: # with:
ref: 'production' # ref: 'production'
# Looks like we need to install Terraform ourselves now! # # Looks like we need to install Terraform ourselves now!
# https://github.com/actions/runner-images/issues/10796#issuecomment-2417064348 # # https://github.com/actions/runner-images/issues/10796#issuecomment-2417064348
- name: Setup Terraform # - name: Setup Terraform
uses: hashicorp/setup-terraform@v3 # uses: hashicorp/setup-terraform@v3
with: # with:
terraform_version: "^1.7.5" # terraform_version: "^1.7.5"
terraform_wrapper: false # terraform_wrapper: false
- name: Check for drift # - name: Check for drift
env: # env:
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }} # AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TERRAFORM_STATE_SECRET_ACCESS_KEY }} # AWS_SECRET_ACCESS_KEY: ${{ secrets.TERRAFORM_STATE_SECRET_ACCESS_KEY }}
TF_VAR_cf_user: ${{ secrets.CLOUDGOV_USERNAME }} # TF_VAR_cf_user: ${{ secrets.CLOUDGOV_USERNAME }}
TF_VAR_cf_password: ${{ secrets.CLOUDGOV_PASSWORD }} # TF_VAR_cf_password: ${{ secrets.CLOUDGOV_PASSWORD }}
run: | # run: |
cd terraform/demo # cd terraform/demo
terraform init # terraform init
terraform plan -detailed-exitcode # terraform plan -detailed-exitcode
exit_code=$? # exit_code=$?
if [ $exit_code -eq 0 ]; then # if [ $exit_code -eq 0 ]; then
echo "No changes detected. Intrastructure is up-to-date." # echo "No changes detected. Intrastructure is up-to-date."
elif [ $exit_code -eq 2 ]; then # elif [ $exit_code -eq 2 ]; then
echo "Changes detected. Infrastructure drift found." # echo "Changes detected. Infrastructure drift found."
exit 1 # exit 1
else # else
echo "Error running terraform plan." # echo "Error running terraform plan."
exit $exit_code # exit $exit_code
fi # fi
check_prod_drift: check_prod_drift:
runs-on: ubuntu-latest runs-on: ubuntu-latest