Files
opensim-docker/image-opensim/pushOpenSimImage.sh
T
Robert Adams 4895e7417d Add VERSION/OS_GIT_DESCRIBE
Use OS_GIT_DESCRIBE for the additional image label
Add image-opensim/config-osgrid
opensim-docker version to 4.0.4
2024-08-12 01:39:05 +00:00

21 lines
730 B
Bash
Executable File

#! /bin/bash
# Push the local image named "opensim-opensim" 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-opensim}
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