Files
docker-hometown/build.sh

19 lines
322 B
Bash
Raw Normal View History

2023-07-16 16:57:11 +01:00
#!/bin/bash
if ! type yq; then
echo "$(tput setaf 1)\`yq\` is not availble, please install from https://github.com/mikefarah/yq"
exit 1
fi
eval "$(yq '.steps.[0].commands[]' < .drone.yml)"
TAG="$(yq '.steps.[1].settings.tags' < .drone.yml)"
2023-07-16 17:30:07 +01:00
(
cd hometown || return 1
2023-07-16 16:57:11 +01:00
2023-07-16 17:30:07 +01:00
docker build -t "$TAG" .
)
2023-07-16 16:57:11 +01:00
rm -r hometown