Skip to content

Commit 71e8145

Browse files
committed
test
1 parent 5caf911 commit 71e8145

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -697,32 +697,31 @@ jobs:
697697
698698
make gen/mark-fresh
699699
make -j \
700-
build/coder_linux_amd64 \
700+
build/coder_linux_{amd64,arm64,armv7} \
701701
build/coder_"$version"_windows_amd64.zip \
702702
build/coder_"$version"_linux_amd64.{tar.gz,deb}
703703
704704
- name: Build Linux Docker images
705705
id: build-docker
706+
env:
707+
CODER_IMAGE_BASE: ghcr.io/coder/coder-preview
706708
run: |
707709
set -euxo pipefail
708710
709711
# build Docker images for each architecture
710712
version="$(./scripts/version.sh)"
711713
tag="main-$(echo "$version" | sed 's/+/-/g')"
712-
713-
export CODER_IMAGE_BUILD_BASE_TAG="ghcr.io/coder/coder-base:latest"
714-
715-
echo "ghcr.io/coder/coder-preview:$tag-amd64" > build/coder_"$version"_linux_amd64.tag
716-
echo "ghcr.io/coder/coder-preview:$tag-arm64" > build/coder_"$version"_linux_arm64.tag
717-
echo "ghcr.io/coder/coder-preview:$tag-armv7" > build/coder_"$version"_linux_armv7.tag
714+
echo "tag=$tag" >> $GITHUB_OUTPUT
718715
719716
make -j build/coder_"$version"_linux_{amd64,arm64,armv7}.tag
720717
721-
# build and push multi-arch manifest, this depends on the other images
722-
# being pushed so will automatically push them
723-
724718
# only push if we are on main branch
725719
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
720+
export DOCKER_CLI_EXPERIMENTAL=enabled
721+
# build and push multi-arch manifest, this depends on the other images
722+
# being pushed so will automatically push them
723+
make -j push/build/coder_"$version"_linux_{amd64,arm64,armv7}.tag
724+
726725
./scripts/build_docker_multiarch.sh \
727726
--push \
728727
--target "ghcr.io/coder/coder-preview:$tag" \
@@ -732,15 +731,8 @@ jobs:
732731
# Tag as main
733732
docker tag "ghcr.io/coder/coder-preview:$tag" ghcr.io/coder/coder-preview:main
734733
docker push ghcr.io/coder/coder-preview:main
735-
else
736-
./scripts/build_docker_multiarch.sh \
737-
--target "ghcr.io/coder/coder-preview:$tag" \
738-
--version $version \
739-
$(cat build/coder_"$version"_linux_{amd64,arm64,armv7}.tag)
740734
fi
741735
742-
echo "tag=$tag" >> $GITHUB_OUTPUT
743-
744736
- name: Prune old images
745737
uses: vlaurin/action-ghcr-prune@v0.5.0
746738
with:

0 commit comments

Comments
 (0)