Skip to content

Commit 68fa34f

Browse files
authored
ci: remove ci make concurrency to fix docker image race (coder#14027)
This PR removes the `-j` argument to `make` when building and pushing Docker images on merge to main. Seen here: https://github.com/coder/coder/actions/runs/10108431095/job/27954323032#step:9:119 We ran into this previously in coder#13769 for the release workflow, but neglected to apply the same change to the CI workflow.
1 parent 37a859f commit 68fa34f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,13 +788,15 @@ jobs:
788788
echo "tag=$tag" >> $GITHUB_OUTPUT
789789
790790
# build images for each architecture
791-
make -j build/coder_"$version"_linux_{amd64,arm64,armv7}.tag
791+
# note: omitting the -j argument to avoid race conditions when pushing
792+
make build/coder_"$version"_linux_{amd64,arm64,armv7}.tag
792793
793794
# only push if we are on main branch
794795
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
795796
# build and push multi-arch manifest, this depends on the other images
796797
# being pushed so will automatically push them
797-
make -j push/build/coder_"$version"_linux_{amd64,arm64,armv7}.tag
798+
# note: omitting the -j argument to avoid race conditions when pushing
799+
make push/build/coder_"$version"_linux_{amd64,arm64,armv7}.tag
798800
799801
# Define specific tags
800802
tags=("$tag" "main" "latest")

0 commit comments

Comments
 (0)