Skip to content

Commit 049fae4

Browse files
committed
chore: Reduce deployment times by excluding Docker images
Only the Windows and Linux binaries are build during deploy, so we can save many minutes by excluding Docker images.
1 parent cc87a0c commit 049fae4

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.github/workflows/coder.yaml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ jobs:
315315
name: "deploy"
316316
runs-on: ubuntu-latest
317317
timeout-minutes: 20
318-
if: github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork
318+
# if: github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork
319319
permissions:
320320
contents: read
321321
id-token: write
@@ -371,17 +371,10 @@ jobs:
371371
- name: Build site
372372
run: make -B site/out/index.html
373373

374-
- name: Build Release
375-
uses: goreleaser/goreleaser-action@v3
376-
with:
377-
version: latest
378-
args: release --snapshot --rm-dist --skip-sign
379-
380-
- uses: actions/upload-artifact@v3
381-
with:
382-
name: coder_windows_amd64.zip
383-
path: ./dist/coder_*_windows_amd64.zip
384-
retention-days: 7
374+
- name: Build Linux Release
375+
run: |
376+
goreleaser build --snapshot --rm-dist coder-slim
377+
goreleaser build --snapshot --rm-dist coder-linux
385378
386379
- uses: actions/upload-artifact@v3
387380
with:
@@ -400,6 +393,16 @@ jobs:
400393
- name: Start
401394
run: gcloud compute ssh coder -- sudo service coder restart
402395

396+
- name: Build Windows Release
397+
run: |
398+
goreleaser build --snapshot --rm-dist coder-windows
399+
400+
- uses: actions/upload-artifact@v3
401+
with:
402+
name: coder_windows_amd64.zip
403+
path: ./dist/coder_*_windows_amd64.zip
404+
retention-days: 7
405+
403406
test-js:
404407
name: "test/js"
405408
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy