- Contains a large number of
installation/deployment
scripts that developers need to use in their daily work. - Automatically supports
cross-platform
installation. - Thanks to the go-task project.
included:
docker-compose
dockerfile
Taskfile
git clone
, with--depth=1
: 只克隆最新的一个 commit
# run:
task dl
# or
tasks:
dl:
cmds:
- mkdir -p .task/
- |
git clone --depth=1 \
https://github.com/better-sre/config.git \
./.task/sre
ignore_error: true
- add to your
Taskfile.yml
:
includes:
x:
taskfile: .task/sre/ # by git clone
dir: .
optional: true
rsync
mirror
# run
task rsync
# or
tasks:
# by rsync
rsync:
aliases: ["mirror", "mr"]
cmds:
- mkdir -p .task/
- |
rsync \
--exclude=".git" \
--exclude=".task" \
--exclude=".github" \
--exclude=".vscode" \
--exclude="tmp" \
--exclude="./*.*" \
--include="Taskfile.yml" \
-av \
--delete \
. ./.task/config # TODO: please set your own source path to the config dir!!!
dir: .
- add to your
Taskfile.yml
:
includes:
x:
taskfile: .task/config/ # by rsync
dir: .
optional: true
- ✅ Manual
# build ubuntu + python:3.12
task df:py:b312
# test container:
task df:py:t312