Skip to content

Commit ba8b789

Browse files
committed
fix
1 parent fe94fc1 commit ba8b789

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/ci-cd.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ jobs:
2828
- name: Checkout code
2929
uses: actions/checkout@v4
3030

31+
# Install kubectl
32+
- name: Install kubectl
33+
run: |
34+
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
35+
chmod +x ./kubectl
36+
sudo mv ./kubectl /usr/local/bin/kubectl
37+
3138
# Authenticate to Google Cloud
3239
- id: 'auth'
3340
name: 'Authenticate to Google Cloud'
@@ -42,11 +49,6 @@ jobs:
4249
- name: Set up Cloud SDK
4350
uses: google-github-actions/setup-gcloud@v2
4451

45-
# Install kubectl
46-
- name: Install kubectl
47-
run: |
48-
gcloud components install kubectl --quiet
49-
5052
# Configure Docker for Artifact Registry
5153
- name: Configure Docker
5254
run: |

0 commit comments

Comments
 (0)