From a694a65fb6258e49c97e7d0edaabccc19d95b493 Mon Sep 17 00:00:00 2001 From: John Ake Date: Fri, 15 Sep 2023 17:14:09 +0100 Subject: [PATCH] Add restore paas db to aks --- .github/workflows/restore-paas-db-to-aks.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/restore-paas-db-to-aks.yml b/.github/workflows/restore-paas-db-to-aks.yml index 2c444a6c..36839ecb 100644 --- a/.github/workflows/restore-paas-db-to-aks.yml +++ b/.github/workflows/restore-paas-db-to-aks.yml @@ -18,7 +18,7 @@ jobs: environment: ${{ inputs.environment }} outputs: - ENVIRONMENT_NAME: ${{ env.ENVIRONMENT_NAME }} + ENVIRONMENT_AKS: ${{ steps.set_aks_env_name.outputs.ENVIRONMENT_AKS }} steps: - uses: actions/checkout@v4 @@ -67,10 +67,12 @@ jobs: path: backup.sql.gz retention-days: 1 - - run: | - case "${ENVIRONMENT_NAME}" in + - name: Set AKS environment name + id: set_aks_env_name + run: | + case "${{ inputs.environment }}" in dev) - echo "ENVIRONMENT_NAME=development_aks" >> $GITHUB_ENV + echo "ENVIRONMENT_AKS=development_aks" >> $GITHUB_OUTPUT ;; *) echo "unknown cluster" @@ -82,10 +84,10 @@ jobs: runs-on: ubuntu-latest needs: backup - environment: ${{ needs.backup.outputs.ENVIRONMENT_NAME }} + environment: ${{ needs.backup.outputs.ENVIRONMENT_AKS }} env: - ENVIRONMENT_NAME: ${{ needs.backup.outputs.ENVIRONMENT_NAME }} + ENVIRONMENT_NAME: ${{ needs.backup.outputs.ENVIRONMENT_AKS }} steps: - uses: actions/checkout@v4