Skip to content

Commit 319ffa1

Browse files
authored
PR commnets
1 parent dc07bef commit 319ffa1

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -724,26 +724,19 @@ jobs:
724724
# being pushed so will automatically push them
725725
make -j push/build/coder_"$version"_linux_{amd64,arm64,armv7}.tag
726726
727-
# Create and push a multi-arch manifest
728-
./scripts/build_docker_multiarch.sh \
729-
--push \
730-
--target "ghcr.io/coder/coder-preview:$tag" \
731-
--version $version \
732-
$(cat build/coder_"$version"_linux_{amd64,arm64,armv7}.tag)
733-
734-
# Create and push a multi-arch manifest for the main tag
735-
./scripts/build_docker_multiarch.sh \
736-
--push \
737-
--target "ghcr.io/coder/coder-preview:main" \
738-
--version $version \
739-
$(cat build/coder_"$version"_linux_{amd64,arm64,armv7}.tag)
740-
741-
# Create and push a multi-arch manifest for the latest tag
742-
./scripts/build_docker_multiarch.sh \
743-
--push \
744-
--target "ghcr.io/coder/coder-preview:latest" \
745-
--version $version \
746-
$(cat build/coder_"$version"_linux_{amd64,arm64,armv7}.tag)
727+
# Define specific tags
728+
tags=("$tag" "main" "latest")
729+
730+
# Create and push a multi-arch manifest for each tag
731+
# we are adding `latest` tag and keeping `main` for backward
732+
# compatibality
733+
for t in "${tags[@]}"; do
734+
./scripts/build_docker_multiarch.sh \
735+
--push \
736+
--target "ghcr.io/coder/coder-preview:$t" \
737+
--version $version \
738+
$(cat build/coder_"$version"_linux_{amd64,arm64,armv7}.tag)
739+
done
747740
fi
748741
749742
- name: Prune old images

0 commit comments

Comments
 (0)