Skip to content

Commit 7762e8b

Browse files
committed
use buildjet
1 parent ce46f71 commit 7762e8b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ jobs:
657657
# are for amd64)
658658
needs: changes
659659
if: needs.changes.outputs.docs-only == 'false'
660-
runs-on: ubuntu-latest
660+
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
661661
outputs:
662662
IMAGE: ghcr.io/coder/coder-preview:${{ steps.build.outputs.tag }}
663663
steps:
@@ -700,27 +700,27 @@ jobs:
700700
701701
# create base image tag
702702
base_tag="coder-base:$version"
703-
703+
704704
# replace + with - in tag
705705
base_tag="${base_tag/+/-}"
706-
706+
707707
# create image tag
708708
tag="main-$version"
709-
709+
710710
# replace + with - in tag
711711
tag="${tag/+/-}"
712-
712+
713713
# create an empty build directory
714714
mkdir -p tmp
715715
716716
# export version, base_tag, and tag as outputs
717717
echo "version=$version" >> $GITHUB_OUTPUT
718718
echo "base_tag=$base_tag" >> $GITHUB_OUTPUT
719719
echo "tag=$tag" >> $GITHUB_OUTPUT
720-
720+
721721
- name: Set up Depot
722722
uses: depot/setup-action@v1
723-
723+
724724
- name: Build multi arch base image
725725
uses: depot/build-push-action@v1
726726
with:
@@ -731,7 +731,7 @@ jobs:
731731
file: ./scripts/Dockerfile.base
732732
push: false
733733
save: true
734-
734+
735735
- name: Build and push multi arch image
736736
uses: depot/build-push-action@v1
737737
with:
@@ -747,7 +747,7 @@ jobs:
747747
ghcr.io/coder/coder-preview:latest
748748
build-args: |
749749
BASE_IMAGE=${{ steps.build.outputs.base_tag }}
750-
CODER_VERSION=${{ steps.build.outputs.version }}
750+
CODER_VERSION=${{ steps.build.outputs.version }}
751751
752752
- name: Prune old images
753753
uses: vlaurin/action-ghcr-prune@v0.5.0

0 commit comments

Comments
 (0)