Skip to content

Commit

Permalink
use azure/setup-kubectl GH action in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hotzevzl committed Jan 18, 2024
1 parent c843513 commit 24061fb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/deploy-to-kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,9 @@ jobs:
sudo sh -c 'echo "127.0.0.1 ${{ secrets.AZURE_AKS_HOST }}" >> /etc/hosts'
- name: Install kubectl
run: |
sudo curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.28/deb/Release.key | sudo gpg --no-tty --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.25/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubectl
uses: azure/setup-kubectl@v3
with:
version: '1.25'

- name: Config kubectl
run: |
Expand Down

0 comments on commit 24061fb

Please sign in to comment.