Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ci: Fix collab deploys (#18077)
Marshall Bowers7d0a7541bfd1
diff --git a/.github/workflows/bump_collab_staging.yml b/.github/workflows/bump_collab_staging.ymlnew file mode 100644index 00000000000..89cc7c48481--- /dev/null+++ b/.github/workflows/bump_collab_staging.yml@@ -0,0 +1,23 @@+name: Bump collab-staging Tag++on:+ push:+ branches:+ - main++jobs:+ update-collab-staging-tag:+ if: github.repository_owner == 'zed-industries'+ runs-on: ubuntu-latest+ steps:+ - name: Checkout repository+ uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4+ with:+ fetch-depth: 0++ - name: Update collab-staging tag+ run: |+ git config user.name github-actions+ git config user.email [email protected]+ git tag -f collab-staging+ git push origin collab-staging --forcediff --git a/.github/workflows/deploy_collab.yml b/.github/workflows/deploy_collab.ymlindex 6801be2a549..c4193adcd24 100644--- a/.github/workflows/deploy_collab.yml+++ b/.github/workflows/deploy_collab.yml@@ -8,7 +8,6 @@ on:env:DOCKER_BUILDKIT: 1- DIGITALOCEAN_ACCESS_TOKEN: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}jobs:style:@@ -61,11 +60,12 @@ jobs:- style- testsruns-on:- - self-hosted- - deploy+ - buildjet-16vcpu-ubuntu-2204steps:- - 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 registryrun: doctl registry login@@ -89,10 +89,19 @@ jobs:needs:- publishruns-on:- - self-hosted- - deploy+ - buildjet-16vcpu-ubuntu-2204steps:+ - name: Checkout repo+ uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4+ with:+ clean: false++ - name: Install doctl+ uses: digitalocean/action-doctl@v2+ with:+ token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}+- name: Sign into Kubernetesrun: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 ${{ secrets.CLUSTER_NAME }}