@@ -657,7 +657,7 @@ jobs:
657
657
# are for amd64)
658
658
needs : changes
659
659
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' }}
661
661
outputs :
662
662
IMAGE : ghcr.io/coder/coder-preview:${{ steps.build.outputs.tag }}
663
663
steps :
@@ -700,27 +700,27 @@ jobs:
700
700
701
701
# create base image tag
702
702
base_tag="coder-base:$version"
703
-
703
+
704
704
# replace + with - in tag
705
705
base_tag="${base_tag/+/-}"
706
-
706
+
707
707
# create image tag
708
708
tag="main-$version"
709
-
709
+
710
710
# replace + with - in tag
711
711
tag="${tag/+/-}"
712
-
712
+
713
713
# create an empty build directory
714
714
mkdir -p tmp
715
715
716
716
# export version, base_tag, and tag as outputs
717
717
echo "version=$version" >> $GITHUB_OUTPUT
718
718
echo "base_tag=$base_tag" >> $GITHUB_OUTPUT
719
719
echo "tag=$tag" >> $GITHUB_OUTPUT
720
-
720
+
721
721
- name : Set up Depot
722
722
uses : depot/setup-action@v1
723
-
723
+
724
724
- name : Build multi arch base image
725
725
uses : depot/build-push-action@v1
726
726
with :
@@ -731,7 +731,7 @@ jobs:
731
731
file : ./scripts/Dockerfile.base
732
732
push : false
733
733
save : true
734
-
734
+
735
735
- name : Build and push multi arch image
736
736
uses : depot/build-push-action@v1
737
737
with :
@@ -747,7 +747,7 @@ jobs:
747
747
ghcr.io/coder/coder-preview:latest
748
748
build-args : |
749
749
BASE_IMAGE=${{ steps.build.outputs.base_tag }}
750
- CODER_VERSION=${{ steps.build.outputs.version }}
750
+ CODER_VERSION=${{ steps.build.outputs.version }}
751
751
752
752
- name : Prune old images
753
753
uses : vlaurin/action-ghcr-prune@v0.5.0
0 commit comments