#! /bin/bash # Push the local image named "opensim-herbal3d" to the repository. # The image tag is set to "latest". # The repository image name can be over-ridden with the environment variable REPO_IMAGE. export IMAGE_OWNER=${IMAGE_OWNER:-misterblue} export IMAGE_NAME=${IMAGE_NAME:-opensim-herbal3d} export IMAGE_VERSION=${IMAGE_VERSION:-latest} VERSIONLABEL=$(docker run --rm --entrypoint /home/opensim/getVersion.sh ${IMAGE_NAME}:${IMAGE_VERSION} OS_GIT_DESCRIBE) echo "Pushing docker image for opensim version ${VERSIONLABEL}" for tagg in ${VERSIONLABEL} ${IMAGE_VERSION} ; do IMAGE=${IMAGE_OWNER}/${IMAGE_NAME}:${tagg} docker tag ${IMAGE_NAME} ${IMAGE} echo " Pushing ${IMAGE}" docker push ${IMAGE} done