-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GIDS] Implement Standard CI/CD Patterns (#1132)
* Add standard workflows * Add providers.tf * add environment tf variable
- Loading branch information
1 parent
baf44c8
commit b10b5d3
Showing
6 changed files
with
45 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: "Build And Publish" | ||
run-name: "Build And Publish" | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
uses: department-of-veterans-affairs/prt-github-workflows/.github/workflows/build-and-publish.yaml@main | ||
secrets: inherit |
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,19 @@ | ||
name: "Deploy Environments" | ||
run-name: "Deploy Environments" | ||
|
||
on: | ||
workflow_dispatch: | ||
repository_dispatch: | ||
types: [trigger-workflow] | ||
|
||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
- 'v**' | ||
# branches: # This is for testing only - This will trigger deploys in this repo on every push | ||
# - '**' | ||
|
||
jobs: | ||
Deploy-Envs: | ||
uses: department-of-veterans-affairs/prt-github-workflows/.github/workflows/deploy-all.yaml@main | ||
secrets: inherit |
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,9 @@ | ||
name: "Comment a Plan on a PR" | ||
run-name: "Comment a Plan on a PR" | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
pr-tf-plan: | ||
uses: department-of-veterans-affairs/prt-github-workflows/.github/workflows/tf-plan.yaml@main | ||
secrets: inherit |
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,2 @@ | ||
environments: | ||
- rm-sbx |
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,3 @@ | ||
provider "aws" { | ||
region = "us-gov-west-1" | ||
} |
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,3 @@ | ||
variable "environment" { | ||
type = string | ||
} |