Fix -p Flag
This commit is contained in:
parent
b0d0bb613e
commit
acf2cd32b3
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue