-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathTaskfile.cicd.yml
More file actions
94 lines (78 loc) · 2.43 KB
/
Taskfile.cicd.yml
File metadata and controls
94 lines (78 loc) · 2.43 KB
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
version: '3'
silent: true
vars:
PR_TEMPLATE: https://raw.githubusercontent.com/devops-infra/.github/refs/tags/v1/PULL_REQUEST_TEMPLATE.md
CONFIGS_BASE_URL: https://raw.githubusercontent.com/devops-infra/.github/refs/tags/v1/templates/actions/configs
TASKFILES_BASE_URL: https://raw.githubusercontent.com/devops-infra/.github/refs/tags/v1/templates/actions/taskfiles
tasks:
pre-commit:
desc: Run all pre-commit hooks
cmds:
- pre-commit run --all-files
pre-commit:install:
desc: Install pre-commit hooks
cmds:
- pre-commit install
lint:
desc: Run all linters (Dockerfile, shell scripts, workflows, YAML)
cmds:
- task: lint:actionlint
- task: lint:hadolint
- task: lint:shellcheck
- task: lint:yamllint
lint:actionlint:
desc: Lint GitHub Actions workflows with actionlint
cmds:
- task: scripts:lint:actionlint
lint:hadolint:
desc: Lint Dockerfile with hadolint
cmds:
- task: scripts:lint:hadolint
lint:shellcheck:
desc: Lint shell scripts with shellcheck
cmds:
- task: scripts:lint:shellcheck
lint:yamllint:
desc: Lint YAML files with yamllint
cmds:
- task: scripts:lint:yamllint
dependency:update:
desc: 'No-op: no dedicated dependency updater configured for this profile'
cmds:
- task: scripts:dependency:update
version:set:
desc: Update version in README.md and action.yml
cmds:
- task: scripts:version:set
version:update:patch:
desc: Increment patch version (e.g., 1.2.3 -> 1.2.4)
cmds:
- task version:set VERSION=v{{.MAJOR}}.{{.MINOR}}.{{.NEXT_PATCH}}
version:update:minor:
desc: Increment minor version (e.g., 1.2.3 -> 1.3.0)
cmds:
- task version:set VERSION=v{{.MAJOR}}.{{.NEXT_MINOR}}.0
version:update:major:
desc: Increment major version (e.g., 1.2.3 -> 2.0.0)
cmds:
- task version:set VERSION=v{{.NEXT_MAJOR}}.0.0
version:resolve-next:
desc: Resolve next version from bump type and profile
cmds:
- task: scripts:version:resolve-next
version:tag-release:
desc: Create set of git tags
cmds:
- task: scripts:version:tag-release
git:get-pr-template:
desc: Get pull request template
cmds:
- task: scripts:git:get-pr-template
git:set-config:
desc: Set git user config
cmds:
- task: scripts:git:set-config
version:get:
desc: Get current version
cmds:
- task: scripts:version:get