mirror of https://github.com/craigerl/aprsd.git
Fixed build.sh
This patch fixes passing the branch to the build script
This commit is contained in:
parent
d9b39734e6
commit
d1a0a988f2
|
@ -11,8 +11,10 @@ cat << EOF
|
||||||
usage: $0 options
|
usage: $0 options
|
||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
|
-h Show help
|
||||||
-t The tag/version (${TAG}) (default = master)
|
-t The tag/version (${TAG}) (default = master)
|
||||||
-d Use Dockerfile-dev for a git clone build
|
-d Use Dockerfile-dev for a git clone build
|
||||||
|
-b Branch to use (default = master)
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,9 +22,9 @@ EOF
|
||||||
ALL_PLATFORMS=0
|
ALL_PLATFORMS=0
|
||||||
DEV=0
|
DEV=0
|
||||||
TAG="latest"
|
TAG="latest"
|
||||||
BRANCH="master"
|
BRANCH=${BRANCH:-master}
|
||||||
|
|
||||||
while getopts “t:dab:” OPTION
|
while getopts “hdat:b:” OPTION
|
||||||
do
|
do
|
||||||
case $OPTION in
|
case $OPTION in
|
||||||
t)
|
t)
|
||||||
|
@ -37,9 +39,13 @@ do
|
||||||
d)
|
d)
|
||||||
DEV=1
|
DEV=1
|
||||||
;;
|
;;
|
||||||
|
h)
|
||||||
|
usage
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
?)
|
?)
|
||||||
usage
|
usage
|
||||||
exit
|
exit -1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
@ -51,7 +57,7 @@ then
|
||||||
PLATFORMS="linux/arm/v7,linux/arm64,linux/amd64"
|
PLATFORMS="linux/arm/v7,linux/arm64,linux/amd64"
|
||||||
#PLATFORMS="linux/arm/v7,linux/arm/v6,linux/amd64"
|
#PLATFORMS="linux/arm/v7,linux/arm/v6,linux/amd64"
|
||||||
else
|
else
|
||||||
PLATFORMS="linux/amd64"
|
PLATFORMS="linux/amd64,linux/arm/v7"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Build with tag=${TAG} BRANCH=${BRANCH} dev?=${DEV} platforms?=${PLATFORMS}"
|
echo "Build with tag=${TAG} BRANCH=${BRANCH} dev?=${DEV} platforms?=${PLATFORMS}"
|
||||||
|
|
Loading…
Reference in New Issue