mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-11 17:04:32 -04:00
upgrade to python 3.12.9
This commit is contained in:
4
.github/actions/setup-project/action.yml
vendored
4
.github/actions/setup-project/action.yml
vendored
@@ -9,10 +9,10 @@ runs:
|
||||
sudo apt-get update \
|
||||
&& sudo apt-get install -y --no-install-recommends \
|
||||
libcurl4-openssl-dev
|
||||
- name: Set up Python 3.12.7
|
||||
- name: Set up Python 3.12.9
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.12.7"
|
||||
python-version: "3.12.9"
|
||||
- name: Install poetry
|
||||
shell: bash
|
||||
run: pip install poetry==2.1.3
|
||||
|
||||
52
.github/workflows/drift.yml
vendored
52
.github/workflows/drift.yml
vendored
@@ -24,14 +24,26 @@ jobs:
|
||||
terraform_wrapper: false
|
||||
|
||||
- name: Check for drift
|
||||
uses: dflook/terraform-check@v1
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.TERRAFORM_STATE_SECRET_ACCESS_KEY }}
|
||||
TF_VAR_cf_user: ${{ secrets.CLOUDGOV_USERNAME }}
|
||||
TF_VAR_cf_password: ${{ secrets.CLOUDGOV_PASSWORD }}
|
||||
with:
|
||||
path: terraform/staging
|
||||
run: |
|
||||
cd terraform/staging
|
||||
terraform init
|
||||
terraform plan -detailed-exitcode
|
||||
exit_code=$?
|
||||
if [ $exit_code -eq 0 ]; then
|
||||
echo "No changes detected. Intrastructure is up-to-date."
|
||||
elif [ $exit_code -eq 2 ]; then
|
||||
echo "Changes detected. Infrastructure drift found."
|
||||
exit 1
|
||||
else
|
||||
echo "Error running terraform plan."
|
||||
exit $exit_code
|
||||
fi
|
||||
|
||||
|
||||
check_demo_drift:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -52,14 +64,25 @@ jobs:
|
||||
terraform_wrapper: false
|
||||
|
||||
- name: Check for drift
|
||||
uses: dflook/terraform-check@v1
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.TERRAFORM_STATE_SECRET_ACCESS_KEY }}
|
||||
TF_VAR_cf_user: ${{ secrets.CLOUDGOV_USERNAME }}
|
||||
TF_VAR_cf_password: ${{ secrets.CLOUDGOV_PASSWORD }}
|
||||
with:
|
||||
path: terraform/demo
|
||||
run: |
|
||||
cd terraform/demo
|
||||
terraform init
|
||||
terraform plan -detailed-exitcode
|
||||
exit_code=$?
|
||||
if [ $exit_code -eq 0 ]; then
|
||||
echo "No changes detected. Intrastructure is up-to-date."
|
||||
elif [ $exit_code -eq 2 ]; then
|
||||
echo "Changes detected. Infrastructure drift found."
|
||||
exit 1
|
||||
else
|
||||
echo "Error running terraform plan."
|
||||
exit $exit_code
|
||||
fi
|
||||
|
||||
check_prod_drift:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -80,11 +103,22 @@ jobs:
|
||||
terraform_wrapper: false
|
||||
|
||||
- name: Check for drift
|
||||
uses: dflook/terraform-check@v1
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.TERRAFORM_STATE_SECRET_ACCESS_KEY }}
|
||||
TF_VAR_cf_user: ${{ secrets.CLOUDGOV_USERNAME }}
|
||||
TF_VAR_cf_password: ${{ secrets.CLOUDGOV_PASSWORD }}
|
||||
with:
|
||||
path: terraform/production
|
||||
run: |
|
||||
cd terraform/production
|
||||
terraform init
|
||||
terraform plan -detailed-exitcode
|
||||
exit_code=$?
|
||||
if [ $exit_code -eq 0 ]; then
|
||||
echo "No changes detected. Intrastructure is up-to-date."
|
||||
elif [ $exit_code -eq 2 ]; then
|
||||
echo "Changes detected. Infrastructure drift found."
|
||||
exit 1
|
||||
else
|
||||
echo "Error running terraform plan."
|
||||
exit $exit_code
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user