Skip to content

Commit

Permalink
Merge pull request #77 from diggerhq/motatoes-patch-75
Browse files Browse the repository at this point in the history
Update main.tf
  • Loading branch information
motatoes authored Nov 22, 2024
2 parents 32c1a07 + 60835f3 commit a9e89e0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/digger_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ jobs:
- name: ${{ fromJSON(github.event.inputs.spec).job_id }}
run: echo "job id ${{ fromJSON(github.event.inputs.spec).job_id }}"
- uses: actions/checkout@v4
- uses: diggerhq/digger@vLatest


- name: Setup Infracost
uses: infracost/actions/setup@v2
with:
api-key: ${{ secrets.INFRACOST_API_KEY }}

- name: digger
uses: diggerhq/digger@vLatest
with:
digger-spec: ${{ inputs.spec }}
digger-private-key: ${{ secrets.DIGGER_PRIVATE_KEY }}
Expand Down
17 changes: 7 additions & 10 deletions digger.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
projects:
- name: dev
dir: .
opentofu: true
- name: staging
dir: .
opentofu: true
- name: prod
dir: .
opentofu: true
workflows:
default:
plan:
steps:
- init
- plan
- run: infracost breakdown --path=. | tee -a $DIGGER_OUT
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "null_resource" "test24" {}
resource "null_resource" "test25" {}

#variable "TEST" {
# default = "hello"
Expand Down

0 comments on commit a9e89e0

Please sign in to comment.