-
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
0 parents
commit a702779
Showing
7 changed files
with
83 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,43 @@ | ||
name: Digger Workflow | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
id: | ||
description: 'run identifier' | ||
required: false | ||
job: | ||
required: true | ||
comment_id: | ||
required: true | ||
run_name: | ||
required: false | ||
|
||
run-name: ${{ inputs.run_name }} | ||
|
||
jobs: | ||
digger-job: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # required to merge PRs | ||
actions: write # required for plan persistence | ||
id-token: write # required for workload-identity-federation | ||
pull-requests: write # required to post PR comments | ||
statuses: write # required to validate combined PR status | ||
|
||
steps: | ||
- name: digger run ${{github.event.inputs.id}} | ||
run: echo digger run ${{ inputs.id }} | ||
shell: bash | ||
- uses: actions/checkout@v4 | ||
- uses: diggerhq/digger-ee@vLatest | ||
with: | ||
setup-aws: true | ||
# recommended to use oidc instead | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
disable-locking: false | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DIGGER_LICENSE_KEY: ${{ secrets.DIGGER_LICENSE_KEY }} |
Empty file.
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,6 @@ | ||
|
||
resource "aws_ssm_parameter" "foo" { | ||
name = "dev/ec2" | ||
type = "String" | ||
value = "ec2 instance" | ||
} |
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,7 @@ | ||
|
||
|
||
resource "aws_ssm_parameter" "foo" { | ||
name = "dev/vpc" | ||
type = "String" | ||
value = "10.10.10.0/32" | ||
} |
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,14 @@ | ||
|
||
|
||
projects: | ||
- name: dev-vpc | ||
dir: dev-vpc | ||
- name: dev-ec2 | ||
dir: dev-ec2 | ||
depends_on: ["dev-vpc"] | ||
- name: prod-vpc | ||
dir: prod-vpc | ||
- name: prod-ec2 | ||
dir: prod-ec2 | ||
depends_on: ["prod-vpc"] | ||
|
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,6 @@ | ||
|
||
resource "aws_ssm_parameter" "foo" { | ||
name = "prod/ec2" | ||
type = "String" | ||
value = "ec2 prod" | ||
} |
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,7 @@ | ||
|
||
|
||
resource "aws_ssm_parameter" "foo" { | ||
name = "prod/vpc" | ||
type = "String" | ||
value = "11.10.10.0/32" | ||
} |