A set of reusable Task templates, ready to use.
Documentation is available: https://task-templates.pages.dev
To use:
- Task
curl
orwget
- Docker (recommended): Many templates use Docker images to avoid installing software.
Taskfile.d
: Directory of the task template filesTaskfile.project.yml
: Task file for the project that has theTASK_TEMPLATES
variableTaskfile.yml
: Core Task file with generic tasks, don't edit it!
- Download the main
Taskfile.yml
and the project file templateTaskfile.project.yml
:
with curl
:
curl --progress-bar -o Taskfile.yml https://gitlab.com/op_so/task/task-templates/-/raw/main/Taskfile.dist.yml
curl --progress-bar -o Taskfile.project.yml https://gitlab.com/op_so/task/task-templates/-/raw/main/Taskfile.project.dist.yml
or with wget
:
wget -cq --show-progress -O Taskfile.yml https://gitlab.com/op_so/task/task-templates/-/raw/main/Taskfile.dist.yml
wget -cq --show-progress -O Taskfile.project.yml https://gitlab.com/op_so/task/task-templates/-/raw/main/Taskfile.project.dist.yml
On Alpine Linux, --show-progress
option isn't available.
- Select your templates by editing the
Taskfile.project.yml
file variableTASK_TEMPLATES
:
example:
vars:
TASK_TEMPLATES: go,lint
and run:
task install-templates
A specific version of a template can be specify as follow:
example for go:
vars:
TASK_TEMPLATES: go[1.7.3],lint
- Git:
Taskfile.project.yml
is the file that has your specific project tasks. You should probably commit it.
If you always want the last version of the task templates, add this following line in your .gitignore
file
/Taskfile.d/
Otherwise, if you prefer stability you should also commit the content of the Taskfile.d
directory or specify the versions of the templates.
ansible.yml
:Ansible
common taskscrypto.yml
: Cryptographic tasks, generate keys, certificatesdocker.yml
:Docker
common tasksgit.yml
:Git
signed commit andcommitizen
tasksgo.yml
:Go
taskslint.yml
: A set of tasks to lint different types of files.multipass.yml
:Multipass
taskspoetry.yml
:Poetry
Python taskspython.yml
: Python common tasksrobot.yml
: Robot Framework useful taskssbom.yml
: Software bill of materials (SBOM
) commands withsyft
andcosign
url.yml
: Check URL withcurl
version.yml
: Useful version tasks like get last version onGithub
,pypi
yarn.yml
:yarn
common tasks with Docker
For details go to the templates documentation.
- To upgrade your existing templates, just run the command:
task install-templates
, - To add a new template, add it to the variable
TASK_TEMPLATES
and runtask install-templates
.
- FX Soubirou - Initial work - GitLab repositories
This program is free software: you can redistribute it and/or modify it under the terms of the MIT License (MIT). See the LICENSE for details.