@@ -716,22 +716,22 @@ jobs:
716
716
make -j build/coder_"$version"_linux_{amd64,arm64,armv7}.tag
717
717
718
718
# 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
735
735
736
736
- name : Prune old images
737
737
uses : vlaurin/action-ghcr-prune@v0.5.0
0 commit comments