forked from HHS/TANF-app
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated logic for when workflows should run and added utility and inf…
…rastructure to filters
- Loading branch information
George Hudson
committed
May 2, 2023
1 parent
0bd5793
commit 098d560
Showing
9 changed files
with
131 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
# workflows: | ||
erd: | ||
unless: << pipeline.parameters.run_nightly_owasp_scan >> | ||
when: << pipeline.parameters.util_make_erd >> | ||
jobs: | ||
- make_erd: | ||
filters: | ||
branches: | ||
only: | ||
develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
########################################################################### | ||
# GitHub Action Workflow | ||
# On push changing terraform files or infrastructure pipelines, triggers the | ||
# terraform deploy pipeline for the appropriate cf space. | ||
# | ||
# Step 0: make changes to non-documentation files in terraform/ or | ||
# .circleci/infrastructure/ and push/merge changes. | ||
# | ||
# Step 1: Makes a request to the V2 CircleCI API to initiate the project, | ||
# which will filter based upon terraform: true flag | ||
# to run the workflow/jobs listed here: | ||
# build-and-test:[ | ||
# enable-versioning-for-s3-buckets | ||
# ] | ||
# | ||
# Leverages the open source GitHub Action: | ||
# https://github.com/promiseofcake/circleci-trigger-action | ||
########################################################################### | ||
name: Run Infrastructure Pipeline When Terraform or Infrastructure Files Change | ||
on: | ||
push: | ||
paths: | ||
- 'terraform/**' | ||
- '.circleci/infrastructure/**' | ||
paths_ignore: | ||
- '**.md' | ||
- '**.txt' | ||
jobs: | ||
deploy_infrastructure: | ||
runs-on: ubuntu-latest | ||
name: Deploy Infrastructure | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Circle CI Deployment Trigger | ||
id: curl-circle-ci | ||
uses: promiseofcake/circleci-trigger-action@v1 | ||
with: | ||
user-token: ${{ secrets.CIRCLE_CI_V2_TOKEN }} | ||
project-slug: raft-tech/TANF-app | ||
branch: ${{ github.ref }} | ||
payload: '{"deploy_infrastructure": true}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
########################################################################### | ||
# GitHub Action Workflow | ||
# On push to develop or master branches, triggers the make erd util pipeline. | ||
# | ||
# Step 0: merge to develop or master | ||
# | ||
# Step 1: Makes a request to the V2 CircleCI API to initiate the project, | ||
# which will filter based upon terraform: true flag | ||
# to run the workflow/jobs listed here: | ||
# build-and-test:[ | ||
# enable-versioning-for-s3-buckets | ||
# ] | ||
# | ||
# Leverages the open source GitHub Action: | ||
# https://github.com/promiseofcake/circleci-trigger-action | ||
########################################################################### | ||
name: Run The Utility Make ERD Pipeline | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
jobs: | ||
make_erd: | ||
runs-on: ubuntu-latest | ||
name: Make ERD | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Circle CI Deployment Trigger | ||
id: curl-circle-ci | ||
uses: promiseofcake/circleci-trigger-action@v1 | ||
with: | ||
user-token: ${{ secrets.CIRCLE_CI_V2_TOKEN }} | ||
project-slug: raft-tech/TANF-app | ||
branch: ${{ github.ref }} | ||
payload: '{"util_make_erd": true}' |