Skip to content
Snippets Groups Projects
Commit 9d3a0dff authored by David Douard's avatar David Douard
Browse files

Do not publish built images to the docker hub by default

To publish built images, you now need to specify it using:

  PUBLISH=yes ./build_images.sh

from the images/ directory.
parent d7393da6
No related branches found
No related tags found
No related merge requests found
File moved
......@@ -7,9 +7,12 @@ username=$(docker info | grep Username | awk '{print $2}')
for img in base web; do
docker build --build-arg SWH_VER=${builddate} --build-arg debianversion=buster -t softwareheritage/${img}:${builddate} -f ${img}/Dockerfile .
docker tag softwareheritage/${img}:${builddate} softwareheritage/${img}:latest
if [[ X${username} = Xsoftwareheritage ]]; then
docker push softwareheritage/${img}:${builddate}
docker push softwareheritage/${img}:latest
if [[ "${username}" = "softwareheritage" ]] && [[ "${PUBLISH:=no}" = "yes" ]]; then
echo "Publishing image softwareheritage/${img}:${builddate} on docker hub"
docker push softwareheritage/${img}:${builddate}
docker push softwareheritage/${img}:latest
fi
done
echo "Done creating images. You may want to use"
echo "export SWH_IMAGE_TAG=${builddate}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment