From 6aab463d7283d66001a558108dbd1a42c5b0a24c Mon Sep 17 00:00:00 2001 From: Thomas Leese Date: Wed, 31 Jan 2024 09:23:45 +0000 Subject: [PATCH] Ensure Terraform is refreshed in database workflow We try and get some outputs from Terraform before we've refreshed the Terraform state, so the values end up being empty. --- .github/workflows/database.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/database.yaml b/.github/workflows/database.yaml index 0d7862044e..2324fc4884 100644 --- a/.github/workflows/database.yaml +++ b/.github/workflows/database.yaml @@ -36,6 +36,12 @@ jobs: environment: production azure-credentials: ${{ secrets.AZURE_CREDENTIALS }} + - name: Refresh Terraform + run: make ci production terraform-refresh + env: + TF_VAR_azure_sp_credentials_json: ${{ secrets.AZURE_CREDENTIALS }} + DOCKER_IMAGE: "ghcr.io/dfe-digital/apply-for-qualified-teacher-status:no-tag" + - name: Get Azure backup storage details id: azure-backup-storage working-directory: terraform/application