@@ -705,56 +705,6 @@ jobs:
705
705
- name : Install depot.dev CLI
706
706
uses : depot/setup-action@v1
707
707
708
- - name : Create an empty base-build-context directory
709
- run : mkdir base-build-context
710
-
711
- - name : Determine base image tag
712
- id : image-base-tag
713
- run : |
714
- set -euo pipefail
715
- version="$(./scripts/version.sh)"
716
- echo "base_tag=$(CODER_IMAGE_BASE=ghcr.io/coder/coder-base ./scripts/image_tag.sh --version "$version")" >> $GITHUB_OUTPUT
717
-
718
- # This uses OIDC authentication, so no auth variables are required.
719
- - name : Build base Docker image via depot.dev
720
- uses : depot/build-push-action@v1
721
- with :
722
- project : d66vz2cd27
723
- context : base-build-context
724
- file : scripts/Dockerfile.base
725
- pull : true
726
- platforms : linux/amd64,linux/arm64,linux/arm/v7
727
- tags : ${{ steps.image-base-tag.outputs.base_tag }}
728
-
729
- - name : Verify that images are pushed properly
730
- run : |
731
- # retry 10 times with a 5 second delay as the images may not be
732
- # available immediately
733
- for i in {1..10}; do
734
- rc=0
735
- raw_manifests=$(docker buildx imagetools inspect --raw "${{ steps.image-base-tag.outputs.tag }}") || rc=$?
736
- if [[ "$rc" -eq 0 ]]; then
737
- break
738
- fi
739
- if [[ "$i" -eq 10 ]]; then
740
- echo "Failed to pull manifests after 10 retries"
741
- exit 1
742
- fi
743
- echo "Failed to pull manifests, retrying in 5 seconds"
744
- sleep 5
745
- done
746
-
747
- manifests=$(
748
- echo "$raw_manifests" | \
749
- jq -r '.manifests[].platform | .os + "/" + .architecture + (if .variant then "/" + .variant else "" end)'
750
- )
751
-
752
- # Verify all 3 platforms are present.
753
- set -euxo pipefail
754
- echo "$manifests" | grep -q linux/amd64
755
- echo "$manifests" | grep -q linux/arm64
756
- echo "$manifests" | grep -q linux/arm/v7
757
-
758
708
- name : Build Linux Docker images
759
709
id : build-docker
760
710
run : |
@@ -764,6 +714,8 @@ jobs:
764
714
version="$(./scripts/version.sh)"
765
715
tag="main-$(echo "$version" | sed 's/+/-/g')"
766
716
717
+ export CODER_IMAGE_BUILD_BASE_TAG="ghcr.io/coder/coder-base:latest"
718
+
767
719
make -j build/coder_"$version"_linux_{amd64,arm64,armv7}.tag
768
720
769
721
# build and push multi-arch manifest, this depends on the other images
0 commit comments