Try and make collab deploys faster (#7746)
Use github machines and build on host instead of in container Release Notes: - N/A
This commit is contained in:
parent
8e52cf1495
commit
cbbc8cad84
2 changed files with 4 additions and 3 deletions
6
.github/workflows/deploy_collab.yml
vendored
6
.github/workflows/deploy_collab.yml
vendored
|
@ -63,9 +63,6 @@ jobs:
|
||||||
- name: Sign into DigitalOcean docker registry
|
- name: Sign into DigitalOcean docker registry
|
||||||
run: doctl registry login
|
run: doctl registry login
|
||||||
|
|
||||||
- name: Prune Docker system
|
|
||||||
run: docker system prune --filter 'until=720h' -f
|
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
@ -78,6 +75,9 @@ jobs:
|
||||||
- name: Publish docker image
|
- name: Publish docker image
|
||||||
run: docker push registry.digitalocean.com/zed/collab:${GITHUB_SHA}
|
run: docker push registry.digitalocean.com/zed/collab:${GITHUB_SHA}
|
||||||
|
|
||||||
|
- name: Prune Docker system
|
||||||
|
run: docker system prune --filter 'until=72h' -f
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy new server image
|
name: Deploy new server image
|
||||||
needs:
|
needs:
|
||||||
|
|
|
@ -11,6 +11,7 @@ ARG GITHUB_SHA
|
||||||
ENV GITHUB_SHA=$GITHUB_SHA
|
ENV GITHUB_SHA=$GITHUB_SHA
|
||||||
RUN --mount=type=cache,target=./script/node_modules \
|
RUN --mount=type=cache,target=./script/node_modules \
|
||||||
--mount=type=cache,target=/usr/local/cargo/registry \
|
--mount=type=cache,target=/usr/local/cargo/registry \
|
||||||
|
--mount=type=cache,target=/usr/local/cargo/git \
|
||||||
--mount=type=cache,target=./target \
|
--mount=type=cache,target=./target \
|
||||||
cargo build --release --package collab --bin collab
|
cargo build --release --package collab --bin collab
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue