diff --git a/.github/workflows/database.yaml b/.github/workflows/database.yaml index d8459a2cb..9a987c995 100644 --- a/.github/workflows/database.yaml +++ b/.github/workflows/database.yaml @@ -10,7 +10,7 @@ on: type: choice options: - test - - preproduction + - preprod - production backup-file: description: | @@ -62,7 +62,7 @@ jobs: - name: Set environment variables run: | source global_config/${DEPLOY_ENV}.sh - tf_vars_file=${TF_VARS_PATH}/${DEPLOY_ENV}/variables.tfvars.json + tf_vars_file=${TF_VARS_PATH}/${{ env.ENVIRONMENT }}/variables.tfvars.json echo "CLUSTER=$(jq -r '.cluster' ${tf_vars_file})" >> $GITHUB_ENV echo "RESOURCE_GROUP_NAME=${AZURE_RESOURCE_PREFIX}-${SERVICE_SHORT}-${CONFIG_SHORT}-rg" >> $GITHUB_ENV echo "STORAGE_ACCOUNT_NAME=${AZURE_RESOURCE_PREFIX}${SERVICE_SHORT}dbbkp${CONFIG_SHORT}sa" >> $GITHUB_ENV @@ -92,7 +92,7 @@ jobs: with: storage-account: ${{ env.STORAGE_ACCOUNT_NAME }} resource-group: ${{ env.RESOURCE_GROUP_NAME }} - app-name: ${{ env.SERVICE_NAME }}-${{ env.DEPLOY_ENV }}-web + app-name: ${{ env.SERVICE_NAME }}-${{ env.ENVIRONMENT }}-web cluster: ${{ env.CLUSTER }} azure-credentials: ${{ secrets.AZURE_CREDENTIALS }} backup-file: ${{ env.BACKUP_FILE }}.sql