Skip to content

Commit 169a0f2

Browse files
committed
fix: azcopy login using tenant-id
1 parent cd5565d commit 169a0f2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/k8_cluster_destroy.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,15 @@ jobs:
3737
client-id: ${{ secrets.AZURE_CLIENT_ID }}
3838
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
3939
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
40+
41+
- name: Install AzCopy
42+
shell: bash
43+
run: bash cicd-deployment-scripts/k8-cluster/install_azcopy.sh -v ${{ env.AZCOPY_VERSION }}
4044

45+
- name: AzCopy Login
46+
shell: bash
47+
run: azcopy login --tenant-id ${{ secrets.AZURE_TENANT_ID }}
48+
4149
# Use kubelogin to configure your kubeconfig for Azure auth
4250
- name: Set up kubelogin for non-interactive login
4351
uses: azure/use-kubelogin@v1
@@ -54,14 +62,6 @@ jobs:
5462
- name: Clone cicd-deployment-scripts
5563
run: git clone https://github.com/code-kern-ai/cicd-deployment-scripts.git
5664

57-
- name: Install AzCopy
58-
shell: bash
59-
run: bash cicd-deployment-scripts/k8-cluster/install_azcopy.sh -v ${{ env.AZCOPY_VERSION }}
60-
61-
- name: AzCopy Login
62-
shell: bash
63-
run: azcopy login --identity --identity-client-id ${{ secrets.AZURE_CLIENT_ID }}
64-
6565
- name: Destroy Cluster Namespace
6666
shell: bash
6767
run: |

0 commit comments

Comments
 (0)