generated from hadenlabs/action-docker-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Taskfile.yml
121 lines (109 loc) · 2.77 KB
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version: '3'
includes:
changelog: ./provision/task/changelog.yml
confluence: ./provision/task/confluence.yml
python: ./provision/task/python.yml
git: ./provision/task/git.yml
docs: ./provision/task/docs.yml
docker: ./provision/task/docker.yml
version: ./provision/task/version.yml
plantuml: ./provision/task/plantuml.yml
prettier: ./provision/task/prettier.yml
sonar: ./provision/task/sonar.yml
diagrams: ./provision/diagrams/Taskfile.yml
env:
DOCKER:
sh: docker --version 2> /dev/null || echo "not exist"
PYTHON:
sh: python --version 2> /dev/null || echo "not exist"
GO:
sh: go version 2> /dev/null || echo "not exist"
NODE:
sh: node --version 2> /dev/null || echo "not exist"
APP_TAG:
sh: git describe --tags $(git rev-list --tags --max-count=1) 2> /dev/null || echo "0.0.0"
README_YAML: provision/generators/README.yaml
README_TEMPLATE: provision/templates/README.tpl.md
README_INCLUDES: file://
dotenv:
- .env
vars:
PROJECT_NAME: action-confluence-sync
ORGANIZATION: hadenlabs
REVIEWERS: luismayta
PYTHON_VERSION: 3.9.2
NODE_VERSION: 16.6.1
GIT_IGNORES: python,node,go,zsh,sonar,linux
GOLANGCI_VERSION: 1.42.0
README_FILE: README.md
GIT_IGNORES_CUSTOM: >-
bin
.scannerwork
.secrets
public
TMP_CHANGELOG.md
.task
.terraform.lock.hcl
*.lock.hcl
.external_modules
tasks:
default:
deps:
- task: check
cmds:
- cmd: echo Application {{.PROJECT_NAME}}
silent: true
- task: version:default
- task: summary
- cmd: task -l
silent: true
summary:
desc: 'Summary information'
cmds:
- echo Go available {{.GO}}
- echo Python available {{.PYTHON}}
- echo Docker available {{.DOCKER}}
- echo Node available {{.NODE}}
silent: true
check:
desc: 'Check all dependencies'
deps:
- python:check
- changelog:check
- git:check
- docs:check
readme:
run: once
desc: Generate Readme
silent: true
cmds:
- cmd: action-docs --update-readme docs/include/actions.md
- >-
gomplate --file {{.README_TEMPLATE}}
--out {{.README_FILE}}
--datasource config={{.README_YAML}}
--datasource includes={{.README_INCLUDES}}
- task: prettier
prettier:
run: once
desc: Execute prettier files
cmds:
- task: prettier:all
upgrade:
run: once
desc: Execute upgrade packages
cmds:
- >-
pipenv run pre-commit autoupdate
setup:
desc: Setup dependences of project
cmds:
- >-
[ -e ".env" ] || cp -rf .env.example .env
- task: python:setup
- task: python:precommit
- task: git:setup
environment:
desc: Setup environment of project
cmds:
- task: python:environment