tools: docker runner accepts tags

This commit is contained in:
Ramon Roche
2022-02-01 20:30:58 -08:00
parent 64276b0c8d
commit fc8cdb0b6f
+9 -1
View File
@@ -8,7 +8,15 @@
#Delete all 'untagged/dangling' (<none>) images
#docker rmi $(docker images -q -f dangling=true)
PX4_DOCKER_REPO="px4io/px4-dev"
if [[ -z "${DOCKER_TAG}" ]]; then
TAG_NAME=""
else
TAG_NAME=":${DOCKER_TAG}"
fi
PX4_DOCKER_REPO="px4io/px4-dev$TAG_NAME"
echo $PX4_DOCKER_REPO
PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
SRC_DIR=$PWD/../