From 81acd11d41e50dd0a37aa35426148ac2cf964e30 Mon Sep 17 00:00:00 2001 From: Zach Wolfenbarger Date: Tue, 25 Apr 2023 17:41:00 -0500 Subject: [PATCH] Update workflows to use aks-set-context@v3 --- .github/workflows/db_migration.yaml | 12 +++++++----- .github/workflows/deploy_app.yaml | 12 +++++++----- .github/workflows/run_task.yaml | 12 +++++++----- 3 files changed, 21 insertions(+), 15 deletions(-) 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: |