This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
spadinastan/script/bootstrap-tasks
Marc Cataford 92d8d3672d
feat(services): bookstack (#33)
* feat(bookstack): working example bookstack instance

* build(taskfiles): add Taskfile to handle start+stop

* fix: ensure that network exists without erroring

* chore(git): ignore Task bin

* docs: notes on volumes, task commands

* build(taskfiles): add build command, centralized user-supplied env

* refactor(taskfiles): split away internal tasks

* refactor(taskfiles): move environment variables into shared env.yml
2023-12-15 12:40:14 -05:00

18 lines
414 B
Bash

#!/bin/bash
TASK_VERSION="v3.28.0"
BIN_PATH=$PWD/bin
if [[ ! -f $BIN_PATH/task || -z "$($BIN_PATH/task --version | grep $TASK_VERSION)" ]]; then
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- $TASK_VERSION -d
fi
BIN_PATH=$PWD/bin
BIN_MATCH=$(echo $PATH | grep "\:$BIN_PATH")
if [[ -z $BIN_MATCH ]]; then
echo "Adding Task to \$PATH."
export PATH=$PATH:$BIN_PATH
fi
echo "All done!"