diff --git a/.github/workflows/db_migration.yaml b/.github/workflows/db_migration.yaml index a9bea10..9e4ced3 100644 --- a/.github/workflows/db_migration.yaml +++ b/.github/workflows/db_migration.yaml @@ -27,12 +27,14 @@ jobs: - name: Checkout uses: actions/checkout@v3.5.2 - - name: Set the target AKS cluster - uses: Azure/aks-set-context@v1 + - uses: azure/login@v1 with: - creds: '${{ secrets.creds }}' - cluster-name: microservices - resource-group: kubernetes + creds: ${{ secrets.creds }} + + - uses: azure/aks-set-context@v3 + with: + resource-group: kubernetes + cluster-name: microservices - name: Set environment variables run: | diff --git a/.github/workflows/deploy_app.yaml b/.github/workflows/deploy_app.yaml index a281aa4..94c5cda 100644 --- a/.github/workflows/deploy_app.yaml +++ b/.github/workflows/deploy_app.yaml @@ -44,12 +44,14 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Set the target AKS cluster - uses: Azure/aks-set-context@v1 + - uses: azure/login@v1 with: - creds: '${{ secrets.creds }}' - cluster-name: microservices - resource-group: kubernetes + creds: ${{ secrets.creds }} + + - uses: azure/aks-set-context@v3 + with: + resource-group: kubernetes + cluster-name: microservices - name: Get current deploy if: ${{ inputs.deploy_check }} diff --git a/.github/workflows/run_task.yaml b/.github/workflows/run_task.yaml index c11fc56..31f3706 100644 --- a/.github/workflows/run_task.yaml +++ b/.github/workflows/run_task.yaml @@ -26,12 +26,14 @@ jobs: - name: Checkout uses: actions/checkout@v3.5.2 - - name: Set the target AKS cluster - uses: Azure/aks-set-context@v1 + - uses: azure/login@v1 with: - creds: '${{ secrets.creds }}' - cluster-name: microservices - resource-group: kubernetes + creds: ${{ secrets.creds }} + + - uses: azure/aks-set-context@v3 + with: + resource-group: kubernetes + cluster-name: microservices - name: Set environment variables run: |