github-actions

Delete Review App

Delete a review app.

If using Google Cloud then GCP_PROJECT_ID abd GCP_WIP variables must be set in the service Makefile.

Inputs

Example

jobs:
  main:
    ...
    permissions:
      id-token: write # Required for OIDC authentication to Azure
      ...

    steps:
    - name: Set environment variables
      shell: bash
        run: |
          source global_config/review.sh
          echo "AZURE_RESOURCE_PREFIX=${AZURE_RESOURCE_PREFIX}" >> $GITHUB_ENV
          echo "CONFIG_SHORT=${CONFIG_SHORT}" >> $GITHUB_ENV

    - name: Delete Review App
      id: delete-review-app
      uses: DFE-Digital/github-actions/delete-review-app@master
      with:
        azure-credentials: $
        container-name: terraform-state
        gcp-wip: $
        gcp-project-id: $
        pr-number: $
        resource-group-name: "$-#SERVICE_SHORT#-$-rg"
        storage-account-name: "$#SERVICE_SHORT#$tfsa"
        tf-state-file: "$_kubernetes.tfstate"