Skip to content

Commit

Permalink
fix: use action-doctl better
Browse files Browse the repository at this point in the history
  • Loading branch information
CalliEve committed Dec 21, 2023
1 parent 40db929 commit 824e178
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 824e178

Please sign in to comment.