mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 01:38:24 -04:00
initial
This commit is contained in:
19
.github/workflows/deploy-demo.yml
vendored
19
.github/workflows/deploy-demo.yml
vendored
@@ -24,23 +24,13 @@ jobs:
|
|||||||
terraform_version: "^1.7.5"
|
terraform_version: "^1.7.5"
|
||||||
terraform_wrapper: false
|
terraform_wrapper: false
|
||||||
|
|
||||||
- name: Check for changes to Terraform
|
|
||||||
id: changed-terraform-files
|
|
||||||
uses: tj-actions/changed-files@v45
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
terraform/demo/**
|
|
||||||
terraform/shared/**
|
|
||||||
.github/workflows/deploy-demo.yml
|
|
||||||
- name: Terraform init
|
- name: Terraform init
|
||||||
if: steps.changed-terraform-files.outputs.any_changed == 'true'
|
|
||||||
working-directory: terraform/demo
|
working-directory: terraform/demo
|
||||||
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 }}
|
||||||
run: terraform init
|
run: terraform init
|
||||||
- name: Terraform apply
|
- name: Terraform apply
|
||||||
if: steps.changed-terraform-files.outputs.any_changed == 'true'
|
|
||||||
working-directory: terraform/demo
|
working-directory: terraform/demo
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
|
||||||
@@ -99,16 +89,7 @@ jobs:
|
|||||||
--var LOGIN_PEM="$LOGIN_PEM"
|
--var LOGIN_PEM="$LOGIN_PEM"
|
||||||
--strategy rolling
|
--strategy rolling
|
||||||
|
|
||||||
- name: Check for changes to egress config
|
|
||||||
id: changed-egress-config
|
|
||||||
uses: tj-actions/changed-files@v45
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
deploy-config/egress_proxy/notify-admin-demo.*.acl
|
|
||||||
.github/actions/deploy-proxy/action.yml
|
|
||||||
.github/workflows/deploy-demo.yml
|
|
||||||
- name: Deploy egress proxy
|
- name: Deploy egress proxy
|
||||||
if: steps.changed-egress-config.outputs.any_changed == 'true'
|
|
||||||
uses: ./.github/actions/deploy-proxy
|
uses: ./.github/actions/deploy-proxy
|
||||||
env:
|
env:
|
||||||
CF_USERNAME: ${{ secrets.CLOUDGOV_USERNAME }}
|
CF_USERNAME: ${{ secrets.CLOUDGOV_USERNAME }}
|
||||||
|
|||||||
19
.github/workflows/deploy-prod.yml
vendored
19
.github/workflows/deploy-prod.yml
vendored
@@ -24,23 +24,13 @@ jobs:
|
|||||||
terraform_version: "^1.7.5"
|
terraform_version: "^1.7.5"
|
||||||
terraform_wrapper: false
|
terraform_wrapper: false
|
||||||
|
|
||||||
- name: Check for changes to Terraform
|
|
||||||
id: changed-terraform-files
|
|
||||||
uses: tj-actions/changed-files@v45
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
terraform/production/**
|
|
||||||
terraform/shared/**
|
|
||||||
.github/workflows/deploy-prod.yml
|
|
||||||
- name: Terraform init
|
- name: Terraform init
|
||||||
if: steps.changed-terraform-files.outputs.any_changed == 'true'
|
|
||||||
working-directory: terraform/production
|
working-directory: terraform/production
|
||||||
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 }}
|
||||||
run: terraform init
|
run: terraform init
|
||||||
- name: Terraform apply
|
- name: Terraform apply
|
||||||
if: steps.changed-terraform-files.outputs.any_changed == 'true'
|
|
||||||
working-directory: terraform/production
|
working-directory: terraform/production
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
|
||||||
@@ -99,16 +89,7 @@ jobs:
|
|||||||
--var LOGIN_PEM="$LOGIN_PEM"
|
--var LOGIN_PEM="$LOGIN_PEM"
|
||||||
--strategy rolling
|
--strategy rolling
|
||||||
|
|
||||||
- name: Check for changes to egress config
|
|
||||||
id: changed-egress-config
|
|
||||||
uses: tj-actions/changed-files@v45
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
deploy-config/egress_proxy/notify-admin-production.*.acl
|
|
||||||
.github/actions/deploy-proxy/action.yml
|
|
||||||
.github/workflows/deploy-prod.yml
|
|
||||||
- name: Deploy egress proxy
|
- name: Deploy egress proxy
|
||||||
if: steps.changed-egress-config.outputs.any_changed == 'true'
|
|
||||||
uses: ./.github/actions/deploy-proxy
|
uses: ./.github/actions/deploy-proxy
|
||||||
env:
|
env:
|
||||||
CF_USERNAME: ${{ secrets.CLOUDGOV_USERNAME }}
|
CF_USERNAME: ${{ secrets.CLOUDGOV_USERNAME }}
|
||||||
|
|||||||
19
.github/workflows/deploy.yml
vendored
19
.github/workflows/deploy.yml
vendored
@@ -29,23 +29,13 @@ jobs:
|
|||||||
terraform_version: "^1.7.5"
|
terraform_version: "^1.7.5"
|
||||||
terraform_wrapper: false
|
terraform_wrapper: false
|
||||||
|
|
||||||
- name: Check for changes to Terraform
|
|
||||||
id: changed-terraform-files
|
|
||||||
uses: tj-actions/changed-files@v45
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
terraform/staging/**
|
|
||||||
terraform/shared/**
|
|
||||||
.github/workflows/deploy.yml
|
|
||||||
- name: Terraform init
|
- name: Terraform init
|
||||||
if: steps.changed-terraform-files.outputs.any_changed == 'true'
|
|
||||||
working-directory: terraform/staging
|
working-directory: terraform/staging
|
||||||
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 }}
|
||||||
run: terraform init
|
run: terraform init
|
||||||
- name: Terraform apply
|
- name: Terraform apply
|
||||||
if: steps.changed-terraform-files.outputs.any_changed == 'true'
|
|
||||||
working-directory: terraform/staging
|
working-directory: terraform/staging
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
|
||||||
@@ -106,16 +96,7 @@ jobs:
|
|||||||
--strategy rolling
|
--strategy rolling
|
||||||
|
|
||||||
|
|
||||||
- name: Check for changes to egress config
|
|
||||||
id: changed-egress-config
|
|
||||||
uses: tj-actions/changed-files@v45
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
deploy-config/egress_proxy/notify-admin-staging.*.acl
|
|
||||||
.github/actions/deploy-proxy/action.yml
|
|
||||||
.github/workflows/deploy.yml
|
|
||||||
- name: Deploy egress proxy
|
- name: Deploy egress proxy
|
||||||
if: steps.changed-egress-config.outputs.any_changed == 'true'
|
|
||||||
uses: ./.github/actions/deploy-proxy
|
uses: ./.github/actions/deploy-proxy
|
||||||
env:
|
env:
|
||||||
CF_USERNAME: ${{ secrets.CLOUDGOV_USERNAME }}
|
CF_USERNAME: ${{ secrets.CLOUDGOV_USERNAME }}
|
||||||
|
|||||||
Reference in New Issue
Block a user