mirror of
https://github.com/Misterblue/opensim-docker.git
synced 2026-07-29 19:03:18 +00:00
Use OS_GIT_DESCRIBE for the additional image label Add image-opensim/config-osgrid opensim-docker version to 4.0.4
21 lines
730 B
Bash
Executable File
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
|