mirror of
https://github.com/Misterblue/opensim-docker.git
synced 2026-07-30 03:12:41 +00:00
21 lines
720 B
Bash
Executable File
21 lines
720 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-ncg}
|
|
export IMAGE_VERSION=${IMAGE_VERSION:-latest}
|
|
|
|
VERSIONLABEL=$(docker run --rm --entrypoint /home/opensim/getVersion.sh ${IMAGE_NAME}:${IMAGE_VERSION} OS_BRANCH)
|
|
|
|
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
|