Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Workflow Code: IrritableEagle_v40 DO NOT REMOVE
# Workflow Code: IrritableEagle_v41 DO NOT REMOVE
# Purpose:
# Automatically runs a terraform apply -auto-approve with the changes
# in the PR against the dev environment when a PR is merged to main.
Expand Down Expand Up @@ -41,7 +41,7 @@ env:
TF_IN_AUTOMATION: 'true'
TF_VERSION: '~>1.4.0' #TODO: Verify your version of terraform.
TF_WORKING_DIR: './infrastructure/dev' # TODO: Verify this directory is correct for your repository (older projects may not be inside of an infrastructure folder)
RESOURCE_GROUP: '' # TODO: Populate this value
RESOURCE_GROUP: '' # TODO: Populate this value
APP_INSIGHTS_NAME: '' # TODO: Populate this value
# The following SSH_* secrets are org-level secrets
SSH_KEY_STORAGE_ACCOUNT: ${{ secrets.SSH_STORAGE_ACCOUNT }}
Expand All @@ -58,7 +58,7 @@ jobs:
auto-apply-tf:
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' # TODO: verify default branch name
runs-on: im-linux
environment: 'Dev'
environment: 'dev'

defaults:
run:
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
# TODO: Remove the pagerduty token if not configuring pagerduty. If using pagerduty verify 'pagerduty_token' is the name of the variable that tf expects
# TODO: Add any other secrets that would be required for a tf plan to succeed. Since this is a multi-line command every line except the last will need a \ on the end of it
# PAGERDUTY_API_KEY is an org-level secret

- name: Terraform Apply
run: |
terraform apply -auto-approve -lock-timeout=90s \
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
with:
workflow-actor: ${{ github.actor }} # This will add the user who kicked off the workflow to the deployment payload
token: ${{ secrets.GITHUB_TOKEN }} # Special per-job token generated by GH for interacting with the repo
environment: 'Dev'
environment: 'dev'
release-ref: 'main'
deployment-status: ${{ job.status }}
deployment-description: 'Deployment to the Dev environment of the main branch'
Expand Down