template that could be used to create multiple image variants and push them to dockerhub.
docker build -t alpine:variant2 ./variants/variant2/
docker run -it --rm alpine:variant2A pipeline will handle running that script or you can simply run:
./build-scripts/build-variants.shthen you can push the images by running:
REGISTRY=<registry-name> ACCOUNT=<account-name> ./build-scripts/push-variants.shMake sure you are logged when trying to push by runnning
docker loginAlso make sure to create the repository before pushing
Default values are if not set:
- REGISTRY=docker.io
- ACCOUNT=lqss