Skip to content

Commit

Permalink
Merge pull request #9436 from Azure/dvirnaim/feature/docker_version
Browse files Browse the repository at this point in the history
add --docker_version
  • Loading branch information
udidekel authored Nov 22, 2023
2 parents a19cb13 + c803dd4 commit 72f9b8b
Showing 1 changed file with 13 additions and 0 deletions.
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

0 comments on commit 72f9b8b

Please sign in to comment.