Update hashicorp/azurerm requirement from ~> 4.12.0 to ~> 4.13.0 in /terraform #296
Workflow file for this run
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
name: Pull Request Validation | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
permissions: | |
id-token: write # This is required for Az CLI Login | |
contents: read # This is required for actions/checkout | |
jobs: | |
dependency-review: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout Repository" | |
uses: actions/checkout@v4 | |
- name: "Dependency Review" | |
uses: actions/dependency-review-action@v4 | |
dotnet-func-ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: frasermolyneux/actions/dotnet-func-ci@main | |
with: | |
dotnet-project: "event-ingest-func" | |
dotnet-version: 9.0.x | |
src-folder: "src" | |
majorMinorVersion: "1.1" | |
terraform-plan-and-apply-dev: | |
environment: Development | |
runs-on: ubuntu-latest | |
concurrency: # This is required to prevent multiple GitHub Actions invocations against stateful resources. e.g. Terraform state file / Database / Deployed Apps | |
group: ${{ github.repository }}-dev | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: frasermolyneux/actions/terraform-plan-and-apply@main | |
with: | |
terraform-folder: "terraform" | |
terraform-var-file: "tfvars/dev.tfvars" | |
terraform-backend-file: "backends/dev.backend.hcl" | |
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} | |
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | |
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
- id: terraform-output | |
shell: bash | |
run: | | |
cd terraform | |
echo "function_app_name=$(terraform output -raw function_app_name)" >> $GITHUB_OUTPUT | |
env: | |
ARM_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} | |
ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
ARM_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | |
ARM_USE_AZUREAD: true | |
ARM_USE_OIDC: true | |
outputs: | |
function_app_name: ${{ steps.terraform-output.outputs.function_app_name }} | |
function-app-deploy-dev: | |
environment: Development | |
runs-on: ubuntu-latest | |
needs: [dotnet-func-ci, terraform-plan-and-apply-dev] | |
concurrency: # This is required to prevent multiple GitHub Actions invocations against stateful resources. e.g. Terraform state file / Database / Deployed Apps | |
group: ${{ github.repository }}-dev | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: frasermolyneux/actions/deploy-function-app@main | |
with: | |
function-app-artifact-name: "event-ingest-func" | |
function-app-name: ${{ needs.terraform-plan-and-apply-dev.outputs.function_app_name }} | |
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} | |
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | |
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
terraform-plan-prd: | |
if: github.actor != 'dependabot[bot]' # dependabot context has no permissions to prod so skip this check | |
environment: Production | |
runs-on: ubuntu-latest | |
needs: [function-app-deploy-dev] | |
concurrency: # This is required to prevent multiple GitHub Actions invocations against stateful resources. e.g. Terraform state file / Database / Deployed Apps | |
group: ${{ github.repository }}-prd | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: frasermolyneux/actions/terraform-plan@main | |
with: | |
terraform-folder: "terraform" | |
terraform-var-file: "tfvars/prd.tfvars" | |
terraform-backend-file: "backends/prd.backend.hcl" | |
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} | |
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | |
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} |