Remove nodejs pkg version from Dockerfile #60
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: Destroy AKS Review Instance | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
destroy: | |
name: Destroy | |
environment: | |
name: review_aks | |
runs-on: ubuntu-latest | |
concurrency: Review_aks_${{github.event.number}} | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: set-up-environment | |
uses: DFE-Digital/github-actions/set-up-environment@master | |
with: | |
var_file: .github/common_environment_aks.yml | |
- name: Setup Environment Variables | |
id: variables | |
run: | | |
echo "pr_name=${{github.event.number}}" >> $GITHUB_OUTPUT | |
terraform_version=$(awk '/{/{f=/^terraform/;next}f' terraform/aks/terraform.tf | grep -o [0-9\.]*) | |
echo "TERRAFORM_VERSION=$terraform_version" >> $GITHUB_ENV | |
- uses: hashicorp/setup-terraform@v2 | |
with: | |
terraform_version: ${{ env.TERRAFORM_VERSION }} | |
- name: Terraform Destroy | |
shell: bash | |
run: make review_aks ci terraform-destroy-aks | |
env: | |
ARM_ACCESS_KEY: ${{ secrets.ARM_ACCESS_KEY }} | |
TF_VAR_azure_credentials_json: ${{ secrets.AZURE_CREDENTIALS }} | |
DOCKER_IMAGE_TAG: ${{ github.sha }} | |
PR_NUMBER: ${{github.event.number}} | |
- name: Delete Terraform Storage File | |
run: az storage blob delete --container-name terraform-state --account-name s189t01gitrvtfsa --account-key ${{secrets.ARM_ACCESS_KEY}} -n ${{steps.variables.outputs.pr_name}}.tfstate |