From 824e1784acaa2d1d710eae94f5ddeaeee1d6af56 Mon Sep 17 00:00:00 2001 From: Calli Date: Thu, 21 Dec 2023 22:51:49 +0100 Subject: [PATCH] fix: use action-doctl better --- .github/workflows/kubernetes.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/kubernetes.yml b/.github/workflows/kubernetes.yml index 151608d..202ba9d 100644 --- a/.github/workflows/kubernetes.yml +++ b/.github/workflows/kubernetes.yml @@ -25,12 +25,12 @@ jobs: docker push ghcr.io/callieve/okto/okto-bot:${{ github.sha }} docker push ghcr.io/callieve/okto/okto-bot:latest - - name: Save DigitalOcean kubeconfig - uses: digitalocean/action-doctl@master - env: - DIGITALOCEAN_ACCESS_TOKEN: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} + - name: Install doctl + uses: digitalocean/action-doctl@v2 + with: + token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} - name: Deploy to DigitalOcean Kubernetes run: | doctl kubernetes cluster kubeconfig save k8s-okto - kubectl --kubeconfig=$GITHUB_WORKSPACE/.kubeconfig -n discord-bots set image statefulset/stateful-okto okto-bot=ghcr.io/callieve/okto/okto-bot:${{ github.sha }} + kubectl -n discord-bots set image statefulset/stateful-okto okto-bot=ghcr.io/callieve/okto/okto-bot:${{ github.sha }}