Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add --docker_version #9436

Merged
merged 1 commit into from
Nov 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Solutions/SAP/sapcon-instance-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ while [[ $# -gt 0 ]]; do
DEVMODE=1
shift 1
;;
--tag-version)
TAG_VERSION="$2"
FORCE=1
shift 2
;;
--dev-acr)
DEVURL="$2"
shift 2
Expand Down Expand Up @@ -161,6 +166,14 @@ while IFS= read -r contname; do
else
tagver=$tag
fi
# in case the TAG_VERSION is defined we are updating the tag specific version
if [ $TAG_VERSION ]; then
if [ $PREVIEW ]; then
tagver=${tagver/latest/$TAG_VERSION}
else
tagver=${tagver/latest/$TAG_VERSION-latest}
fi
fi
fi

sysfileloc=$(docker inspect "$contname" --format '{{ .Mounts }}'| awk 'NR==1 {print $2}')
Expand Down