2023-07-16 15:57:11 +00: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 16:30:07 +00:00
|
|
|
(
|
|
|
|
cd hometown || return 1
|
2023-07-16 15:57:11 +00:00
|
|
|
|
2023-07-16 17:21:55 +00:00
|
|
|
docker build -t "git.coopcloud.tech/coop-cloud-chaos-patchs/hometown:$TAG" .
|
2023-07-16 16:30:07 +00:00
|
|
|
)
|
2023-07-16 15:57:11 +00:00
|
|
|
|
|
|
|
rm -r hometown
|