Skip to content

Commit

Permalink
add docker version option
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir-ms committed Nov 21, 2023
1 parent b586cbf commit c803dd4
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 c803dd4

Please sign in to comment.