Skip to content

Commit 65678a7

Browse files
committedJan 10, 2024
test
1 parent 71e8145 commit 65678a7

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed
 

‎.github/workflows/ci.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -716,22 +716,22 @@ jobs:
716716
make -j build/coder_"$version"_linux_{amd64,arm64,armv7}.tag
717717
718718
# only push if we are on main branch
719-
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-
725-
./scripts/build_docker_multiarch.sh \
726-
--push \
727-
--target "ghcr.io/coder/coder-preview:$tag" \
728-
--version $version \
729-
$(cat build/coder_"$version"_linux_{amd64,arm64,armv7}.tag)
730-
731-
# Tag as main
732-
docker tag "ghcr.io/coder/coder-preview:$tag" ghcr.io/coder/coder-preview:main
733-
docker push ghcr.io/coder/coder-preview:main
734-
fi
719+
# 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+
725+
./scripts/build_docker_multiarch.sh \
726+
--push \
727+
--target "ghcr.io/coder/coder-preview:$tag" \
728+
--version $version \
729+
$(cat build/coder_"$version"_linux_{amd64,arm64,armv7}.tag)
730+
731+
# Tag as main
732+
docker tag "ghcr.io/coder/coder-preview:$tag" ghcr.io/coder/coder-preview:main
733+
docker push ghcr.io/coder/coder-preview:main
734+
# fi
735735
736736
- name: Prune old images
737737
uses: vlaurin/action-ghcr-prune@v0.5.0

0 commit comments

Comments
 (0)