Skip to content

Commit

Permalink
Add DNS zone (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
benchiverton authored Jul 1, 2024
1 parent dee4ad9 commit 5465edf
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 30 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/permanent-plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,21 @@ jobs:
env:
TF_VAR_location: "East US"
TF_VAR_environment: prod
- uses: actions/[email protected]
if: github.event_name == 'pull_request'
env:
PLAN: "terraform\n${{ steps.plan.outputs.stdout }}"
- name: Find Comment
uses: peter-evans/find-comment@v1
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: "### Terraform plan for perm"
- name: Create or update comment
uses: peter-evans/create-or-update-comment@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const output = `### Terraform plan for permanent
issue-number: ${{ github.event.pull_request.number }}
comment-id: ${{ steps.fc.outputs.comment-id }}
edit-mode: replace
body: |
### Terraform plan for perm
#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\`
#### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\`
#### Terraform Validation 🤖${{ steps.validate.outputs.stdout }}
Expand All @@ -56,11 +63,4 @@ jobs:
</details>
*Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`, Working Directory: \`${{ env.tf_actions_working_dir }}\`, Workflow: \`${{ github.workflow }}\`*`;
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})
*Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`, Working Directory: \`${{ env.tf_actions_working_dir }}\`, Workflow: \`${{ github.workflow }}\`*
30 changes: 15 additions & 15 deletions .github/workflows/shared-plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,21 @@ jobs:
env:
TF_VAR_location: "East US"
TF_VAR_environment: prod
- uses: actions/[email protected]
if: github.event_name == 'pull_request'
env:
PLAN: "terraform\n${{ steps.plan.outputs.stdout }}"
- name: Find Comment
uses: peter-evans/find-comment@v1
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: "### Terraform plan for shared"
- name: Create or update comment
uses: peter-evans/create-or-update-comment@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const output = `### Terraform plan for shared
issue-number: ${{ github.event.pull_request.number }}
comment-id: ${{ steps.fc.outputs.comment-id }}
edit-mode: replace
body: |
### Terraform plan for shared
#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\`
#### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\`
#### Terraform Validation 🤖${{ steps.validate.outputs.stdout }}
Expand All @@ -56,11 +63,4 @@ jobs:
</details>
*Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`, Working Directory: \`${{ env.tf_actions_working_dir }}\`, Workflow: \`${{ github.workflow }}\`*`;
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})
*Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`, Working Directory: \`${{ env.tf_actions_working_dir }}\`, Workflow: \`${{ github.workflow }}\`*
4 changes: 4 additions & 0 deletions terraform/shared/dns-zone.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "azurerm_dns_zone" "rockpal-co-uk" {
name = "rockpal.co.uk"
resource_group_name = azurerm_resource_group.shared.name
}

0 comments on commit 5465edf

Please sign in to comment.