generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07bfddb
commit ff9aa7a
Showing
6 changed files
with
15 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
name: CI-Pipeline | ||
|
||
# Controls when the workflow will run | ||
# Controls when the workflow will run, when comment is created | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the main branch | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
issue_comment: | ||
types: | ||
- created | ||
jobs: | ||
call-terraform-ci-pipeline: | ||
uses: terraform-ibm-modules/common-pipeline-assets/.github/workflows/[email protected] | ||
uses: terraform-ibm-modules/common-pipeline-assets/.github/workflows/common-terraform-module-ci-v2[email protected] | ||
secrets: inherit | ||
with: | ||
craSCCv2: true | ||
craTarget: "examples/new-resource-group" | ||
craGoalIgnoreFile: "cra-tf-validate-ignore-goals.json" | ||
craRuleIgnoreFile: "cra-tf-validate-ignore-rules.json" | ||
craEnvironmentVariables: "TF_VAR_resource_group_name=new-resource-group" |
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,17 +1,12 @@ | ||
name: Release-Pipeline | ||
|
||
# Trigger on push(merge) to main branch | ||
on: | ||
workflow_run: | ||
workflows: [CI-Pipeline] | ||
branches: [main] | ||
types: | ||
- completed | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
call-terraform-release-pipeline: | ||
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} | ||
uses: terraform-ibm-modules/common-pipeline-assets/.github/workflows/[email protected] | ||
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
This file was deleted.
Oops, something went wrong.
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 @@ | ||
{ | ||
"scc_rules": [] | ||
} |