Skip to content

Commit

Permalink
Install doctl in CI
Browse files Browse the repository at this point in the history
Co-authored-by: Conrad <conrad@zed.dev>
  • Loading branch information
maxdeviant and ConradIrwin committed Sep 19, 2024
1 parent 4882a75 commit d3a9a80
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/deploy_collab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
DOCKER_BUILDKIT: 1
DIGITALOCEAN_ACCESS_TOKEN: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
# DIGITALOCEAN_ACCESS_TOKEN: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

jobs:
style:
Expand Down Expand Up @@ -63,8 +63,13 @@ jobs:
runs-on:
- buildjet-16vcpu-ubuntu-2204
steps:
- name: Add Rust to the PATH
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
# - name: Add Rust to the PATH
# run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH

- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

- name: Sign into DigitalOcean docker registry
run: doctl registry login
Expand All @@ -91,6 +96,11 @@ jobs:
- buildjet-16vcpu-ubuntu-2204

steps:
- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

- name: Sign into Kubernetes
run: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 ${{ secrets.CLUSTER_NAME }}

Expand Down

0 comments on commit d3a9a80

Please sign in to comment.