Fix -p Flag

This commit is contained in:
Florian Widder 2021-01-12 14:41:17 +01:00
parent b0d0bb613e
commit acf2cd32b3
2 changed files with 4 additions and 4 deletions

View file

@ -80,10 +80,10 @@ build-multi-platform.sh
build-multi-platform.sh -t "other_tag" build-multi-platform.sh -t "other_tag"
# Build with tag "metube" and Upload do Docker Registry # Build with tag "metube" and Upload do Docker Registry
build-multi-platform.sh -p true build-multi-platform.sh -p
# Build with tag "other_tag" and Upload do Docker Registry # Build with tag "other_tag" and Upload do Docker Registry
build-multi-platform.sh -t "other_tag" -p true build-multi-platform.sh -t "other_tag" -p
``` ```
## Development notes ## Development notes

View file

@ -8,14 +8,14 @@ while getopts ":hhelpf:t:p:" ARGS;
do do
case $ARGS in case $ARGS in
h|help ) h|help )
echo -e "Usgae:\n\t-t \"Tag\"\n\t\tuse a specific Tag\n\t-p true\n\t\tPush the Image do a registry. Needs to be logged in (docker login).\n\t-h\n\t\t Show this Help Dialog" echo -e "Usgae:\n\t-t \"Tag\"\n\t\tuse a specific Tag\n\t-p\n\t\tPush the Image do a registry. Needs to be logged in (docker login).\n\t-h\n\t\t Show this Help Dialog"
exit 1 exit 1
;; ;;
t ) t )
TAG="${OPTARG}" TAG="${OPTARG}"
;; ;;
p ) p )
PUSH="${OPTARG}" PUSH="true"
;; ;;
esac esac
done done