Skip to content

Commit

Permalink
feat: fun :)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksasiriski committed Aug 31, 2024
1 parent 01eebc9 commit 9516a98
Show file tree
Hide file tree
Showing 41 changed files with 358 additions and 620 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/digger_workflow_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Digger Workflow

on:
workflow_dispatch:
inputs:
spec:
required: true
run_name:
required: false

run-name: "${{inputs.run_name}}"

jobs:
digger-job:
runs-on: ubuntu-latest
environment: dev
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:
- uses: actions/checkout@v4
- name: ${{ fromJSON(github.event.inputs.spec).job_id }}
run: echo "job id ${{ fromJSON(github.event.inputs.spec).job_id }}"
- uses: diggerhq/[email protected]
with:
digger-spec: ${{ inputs.spec }}
setup-opentofu: true
opentofu-version: v1.8.1
setup-terragrunt: true
terragrunt-version: 0.66.4
setup-aws: true
aws-role-to-assume: arn:aws:iam::891377085136_Admin:role/github-oidc-auth-role
aws-region: eu-central-1
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40 changes: 40 additions & 0 deletions .github/workflows/digger_workflow_prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Digger Workflow

on:
workflow_dispatch:
inputs:
spec:
required: true
run_name:
required: false

run-name: "${{inputs.run_name}}"

jobs:
digger-job:
runs-on: ubuntu-latest
environment: prod
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:
- uses: actions/checkout@v4
- name: ${{ fromJSON(github.event.inputs.spec).job_id }}
run: echo "job id ${{ fromJSON(github.event.inputs.spec).job_id }}"
- uses: diggerhq/[email protected]
with:
digger-spec: ${{ inputs.spec }}
setup-opentofu: true
opentofu-version: v1.8.1
setup-terragrunt: true
terragrunt-version: 0.66.4
setup-aws: true
aws-role-to-assume: arn:aws:iam::730335356331_Admin:role/github-oidc-auth-role
aws-region: eu-central-1
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions digger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
generate_projects:
blocks:
- block_name: prod
terragrunt: true
root_dir: "live/prod/"
workflow: default
workflow_file: digger_workflow_prod.yml
- block_name: dev
terragrunt: true
root_dir: "live/dev/"
workflow: default
workflow_file: digger_workflow_dev.yml
56 changes: 0 additions & 56 deletions live/dev/agent/.terraform.lock.hcl

This file was deleted.

146 changes: 0 additions & 146 deletions live/dev/agent/terragrunt.hcl

This file was deleted.

2 changes: 2 additions & 0 deletions live/dev/dns/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ locals {
environment = include.root.locals.environment
domain_name = include.root.locals.domain_name

dnssec = false
records = []
}

inputs = {
aws_profile = local.aws_profile
domain_name = local.domain_name
records = local.records
dnssec = local.dnssec
}
56 changes: 0 additions & 56 deletions live/dev/frontend-llrt/.terraform.lock.hcl

This file was deleted.

Loading

0 comments on commit 9516a98

Please sign in to comment.