This PR adjusts how gen-dockerfiles works for buildx enabled repos. It will now push the main version tags from the buildx command directly (as build and push cannot be split easily in buildx) and use the push-images.sh file to push the variant tags.
#!/usr/bin/env bash
# Do not edit by hand; please use build scripts/templates to make changes
docker buildx imagetools create -t cimg/node:current cimg/node:20.4.0
docker buildx imagetools create -t cimg/node:current-browsers cimg/node:20.4.0-browsers
docker buildx imagetools create -t cimg/node:lts cimg/node:18.16.1
docker buildx imagetools create -t cimg/node:lts-browsers cimg/node:18.16.1-browsers
This could be better consolidated into a single file in the future (or add variant tags to the buildx commands), but for now, while we support both traditional builds and buildx, this seems like the best solution.
This PR adjusts how gen-dockerfiles works for buildx enabled repos. It will now push the main version tags from the buildx command directly (as build and push cannot be split easily in buildx) and use the push-images.sh file to push the variant tags.
Example
build-images.sh
Example
push-images.sh
This could be better consolidated into a single file in the future (or add variant tags to the buildx commands), but for now, while we support both traditional builds and buildx, this seems like the best solution.