mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
clean up
This commit is contained in:
105
.github/workflows/drift.yml
vendored
105
.github/workflows/drift.yml
vendored
@@ -24,6 +24,11 @@ jobs:
|
|||||||
terraform_wrapper: false
|
terraform_wrapper: false
|
||||||
|
|
||||||
- name: Check for drift
|
- name: Check for drift
|
||||||
|
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 }}
|
||||||
run: |
|
run: |
|
||||||
cd terraform/staging
|
cd terraform/staging
|
||||||
terraform init
|
terraform init
|
||||||
@@ -39,58 +44,58 @@ 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
|
||||||
uses: dflook/terraform-check@v1
|
# uses: dflook/terraform-check@v1
|
||||||
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 }}
|
||||||
with:
|
# with:
|
||||||
path: terraform/demo
|
# path: terraform/demo
|
||||||
|
|
||||||
check_prod_drift:
|
# check_prod_drift:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
name: Check for drift of production terraform configuration
|
# name: Check for drift of production terraform configuration
|
||||||
environment: production
|
# environment: production
|
||||||
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
|
||||||
uses: dflook/terraform-check@v1
|
# uses: dflook/terraform-check@v1
|
||||||
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 }}
|
||||||
with:
|
# with:
|
||||||
path: terraform/production
|
# path: terraform/production
|
||||||
|
|||||||
Reference in New Issue
Block a user