LASB-2808 Add APP_GOOGLE_ANALYTICS_4_TAG_ID to MLRA task_definition.json #1466
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: mlra | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'terraform/environments/mlra/**' | |
- '.github/workflows/mlra.yml' | |
pull_request: | |
branches: | |
- main | |
types: [opened, edited, reopened, synchronize] | |
paths: | |
- 'terraform/environments/mlra/**' | |
- '.github/workflows/mlra.yml' | |
workflow_dispatch: | |
inputs: | |
action: | |
description: 'Set either [deploy|destroy-dev].' | |
default: 'deploy' | |
required: true | |
type: string | |
options: | |
- deploy | |
- destroy-dev | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
contents: read # This is required for actions/checkout | |
jobs: | |
strategy: | |
uses: ./.github/workflows/reusable_terraform_strategy.yml | |
if: inputs.action != 'destroy' | |
with: | |
application: "${{ github.workflow }}" | |
terraform: | |
needs: strategy | |
if: inputs.action != 'destroy' | |
strategy: | |
fail-fast: false | |
matrix: ${{ fromJson(needs.strategy.outputs.matrix) }} | |
uses: ./.github/workflows/reusable_terraform_plan_apply.yml | |
with: | |
application: "${{ github.workflow }}" | |
environment: "${{ matrix.target }}" | |
action: "${{ matrix.action }}" | |
secrets: | |
modernisation_platform_environments: "${{ secrets.MODERNISATION_PLATFORM_ENVIRONMENTS }}" | |
pipeline_github_token: "${{ secrets.MODERNISATION_PLATFORM_CI_USER_ENVIRONMENTS_REPO_PAT }}" | |
destroy-development: | |
if: inputs.action == 'destroy-dev' | |
uses: ./.github/workflows/reusable_terraform_plan_apply.yml | |
with: | |
application: "${{ github.workflow }}" | |
environment: "development" | |
action: "plan_apply" | |
plan_apply_tfargs: "-destroy" | |
secrets: | |
modernisation_platform_environments: "${{ secrets.MODERNISATION_PLATFORM_ENVIRONMENTS }}" | |
pipeline_github_token: "${{ secrets.MODERNISATION_PLATFORM_CI_USER_ENVIRONMENTS_REPO_PAT }}" | |