diff --git a/.github/workflows/database-backup.yml b/.github/workflows/database-backup.yml index 6da29af21..ff2f70134 100644 --- a/.github/workflows/database-backup.yml +++ b/.github/workflows/database-backup.yml @@ -58,6 +58,7 @@ jobs: source global_config/${{ env.DEPLOY_ENV }}.sh tf_vars_file=${{ env.TF_VARS_PATH }}/${{ env.DEPLOY_ENV }}.tfvars.json echo "CLUSTER=$(jq -r '.cluster' ${tf_vars_file})" >> $GITHUB_ENV + echo "NAMESPACE=$(jq -r '.namespace' ${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 TODAY=$(date +"%F") @@ -87,6 +88,7 @@ jobs: storage-account: ${{ env.STORAGE_ACCOUNT_NAME }} resource-group: ${{ env.RESOURCE_GROUP_NAME }} app-name: ${{ env.SERVICE_NAME }}-${{ env.DEPLOY_ENV }} + namespace: ${{ env.NAMESPACE }} cluster: ${{ env.CLUSTER }} azure-client-id: ${{ secrets.AZURE_CLIENT_ID }} azure-subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}