-
Notifications
You must be signed in to change notification settings - Fork 7
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
Showing
2 changed files
with
18 additions
and
18 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 |
---|---|---|
|
@@ -15,13 +15,13 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Preflight Checks | ||
uses: gruntwork-io/pipelines-preflight-action@main | ||
uses: gruntwork-io/pipelines-preflight-action@v0.0.1 | ||
with: | ||
PIPELINES_READ_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }} | ||
|
||
- name: Pipelines Orchestrate | ||
id: orchestrate | ||
uses: gruntwork-io/pipelines-orchestrate@main | ||
uses: pipelines-[email protected] | ||
with: | ||
token: ${{ secrets.PIPELINES_READ_TOKEN || secrets.GITHUB_TOKEN }} | ||
|
||
|
@@ -47,7 +47,7 @@ jobs: | |
|
||
- name: Bootstrap Workflow | ||
id: bootstrap | ||
uses: gruntwork-io/pipelines-bootstrap@main | ||
uses: gruntwork-io/pipelines-bootstrap@v0.0.1 | ||
with: | ||
token: ${{ secrets.PIPELINES_READ_TOKEN }} | ||
change_type: ${{ matrix.jobs.ChangeType }} | ||
|
@@ -61,7 +61,7 @@ jobs: | |
|
||
- name: "Run terragrunt ${{ steps.bootstrap.outputs.terragrunt_command }} in ${{ steps.bootstrap.outputs.working_directory }}" | ||
id: terragrunt | ||
uses: gruntwork-io/pipelines-aws-execute@main | ||
uses: gruntwork-io/pipelines-aws-execute@v0.0.1 | ||
with: | ||
PIPELINES_READ_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }} | ||
account_id: ${{ steps.bootstrap.outputs.account_id }} | ||
|
@@ -72,7 +72,7 @@ jobs: | |
|
||
- name: Update comment | ||
if: always() | ||
uses: gruntwork-io/pipelines-status-update@main | ||
uses: gruntwork-io/pipelines-status-update@v0.2.0 | ||
with: | ||
step_name: ${{ matrix.jobs.ChangeType }} | ||
step_working_directory: ${{ matrix.jobs.WorkingDirectory }} | ||
|
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 |
---|---|---|
|
@@ -19,13 +19,13 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Preflight Checks | ||
uses: gruntwork-io/pipelines-preflight-action@main | ||
uses: gruntwork-io/pipelines-preflight-action@v0.0.1 | ||
with: | ||
PIPELINES_READ_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }} | ||
|
||
- name: Pipelines Orchestrate | ||
id: orchestrate | ||
uses: gruntwork-io/pipelines-orchestrate@main | ||
uses: pipelines-[email protected] | ||
with: | ||
token: ${{ secrets.PIPELINES_READ_TOKEN }} | ||
|
||
|
@@ -51,7 +51,7 @@ jobs: | |
|
||
- name: Bootstrap Workflow | ||
id: bootstrap | ||
uses: gruntwork-io/pipelines-bootstrap@main | ||
uses: gruntwork-io/pipelines-bootstrap@v0.0.1 | ||
with: | ||
token: ${{ secrets.PIPELINES_READ_TOKEN }} | ||
change_type: ${{ matrix.jobs.ChangeType }} | ||
|
@@ -68,7 +68,7 @@ jobs: | |
- name: "[ProvisionAccount]: Provision New Account" | ||
id: provision_access_control | ||
if: ${{ steps.bootstrap.outputs.action == 'PROVISION_ACCOUNT' }} | ||
uses: gruntwork-io/pipelines-provision-account-action@main | ||
uses: gruntwork-io/pipelines-provision-account-action@v0.0.1 | ||
with: | ||
PIPELINES_READ_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }} | ||
INFRA_ROOT_WRITE_TOKEN: ${{ secrets.INFRA_ROOT_WRITE_TOKEN }} | ||
|
@@ -81,15 +81,15 @@ jobs: | |
# TODO: Rename this as pipelines-apply-core-baselines or something similar | ||
# Also, the final Auth to the management account in this action should be done by the pipelines-baseline-child-account-action | ||
# instead to prevent the indirection and confusion | ||
uses: gruntwork-io/pipelines-baseline-account-action@main | ||
uses: gruntwork-io/pipelines-baseline-account-action@v0.0.1 | ||
with: | ||
PIPELINES_READ_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }} | ||
gruntwork_context: ${{ toJson(steps.bootstrap.outputs) }} | ||
|
||
- name: "[TerragruntExecute]: Authenticate with AWS and then Invoke Terragrunt" | ||
id: terragrunt | ||
if: ${{ steps.bootstrap.outputs.action == 'TERRAGRUNT_EXECUTE' }} | ||
uses: gruntwork-io/pipelines-aws-execute@main | ||
uses: gruntwork-io/pipelines-aws-execute@v0.0.1 | ||
with: | ||
PIPELINES_READ_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }} | ||
account_id: ${{ steps.bootstrap.outputs.account_id }} | ||
|
@@ -99,7 +99,7 @@ jobs: | |
gruntwork_context: ${{ toJson(steps.bootstrap.outputs) }} | ||
|
||
- name: Update comment | ||
uses: gruntwork-io/pipelines-status-update@main | ||
uses: gruntwork-io/pipelines-status-update@v0.2.0 | ||
if: always() | ||
with: | ||
step_name: ${{ matrix.jobs.ChangeType }} | ||
|
@@ -131,23 +131,23 @@ jobs: | |
jobs: ${{ fromJson(needs.detect_changes.outputs.pipelines_jobs)[0].NewAccounts }} | ||
steps: | ||
- name: Update comment | ||
uses: gruntwork-io/pipelines-status-update@main | ||
uses: gruntwork-io/pipelines-status-update@v0.2.0 | ||
with: | ||
step_name: Baseline Child Account ${{ matrix.jobs.Name }} | ||
step_status: "in_progress" | ||
pull_request_number: ${{ needs.pipelines_determine.outputs.pr_number }} | ||
|
||
- name: "[Baseline]: Baseline the Child Account" | ||
id: baseline_child_account | ||
uses: gruntwork-io/pipelines-baseline-child-account-action@main | ||
uses: gruntwork-io/pipelines-baseline-child-account-action@v0.0.1 | ||
with: | ||
PIPELINES_READ_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }} | ||
account_id: ${{ matrix.jobs.ID }} | ||
account_name: ${{ matrix.jobs.Name }} | ||
job: ${{ toJson(fromJson(needs.detect_changes.outputs.pipelines_jobs)[0]) }} | ||
|
||
- name: Update comment | ||
uses: gruntwork-io/pipelines-status-update@main | ||
uses: gruntwork-io/pipelines-status-update@v0.2.0 | ||
if: always() | ||
with: | ||
step_name: Baseline Child Account ${{ matrix.jobs.Name }} | ||
|
@@ -169,7 +169,7 @@ jobs: | |
|
||
- name: Bootstrap Workflow | ||
id: bootstrap | ||
uses: gruntwork-io/pipelines-bootstrap@main | ||
uses: gruntwork-io/pipelines-bootstrap@v0.0.1 | ||
with: | ||
token: ${{ secrets.PIPELINES_READ_TOKEN }} | ||
change_type: ${{ fromJson(needs.detect_changes.outputs.pipelines_jobs)[0].ChangeType }} | ||
|
@@ -187,15 +187,15 @@ jobs: | |
|
||
- name: "Create Access Control PR" | ||
id: access_control_pr | ||
uses: gruntwork-io/pipelines-provision-access-control-action@main | ||
uses: gruntwork-io/pipelines-provision-access-control-action@v0.0.1 | ||
with: | ||
gruntwork_context: ${{ toJson(steps.bootstrap.outputs) }} | ||
PIPELINES_READ_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }} | ||
ORG_REPO_ADMIN_TOKEN: ${{ secrets.ORG_REPO_ADMIN_TOKEN }} | ||
|
||
- name: "Create and bootstrap delegated Repo" | ||
id: provision_delegated_repo | ||
uses: gruntwork-io/pipelines-provision-repo-action@main | ||
uses: gruntwork-io/pipelines-provision-repo-action@v0.0.1 | ||
with: | ||
gruntwork_context: ${{ toJson(steps.bootstrap.outputs) }} | ||
access_control_pull_request_url: ${{ steps.access_control_pr.outputs.pull_request_url }} | ||
|