-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.cicd.yml
More file actions
76 lines (62 loc) · 1.86 KB
/
Copy pathTaskfile.cicd.yml
File metadata and controls
76 lines (62 loc) · 1.86 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
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/dockerized/configs
TASKFILES_BASE_URL: https://raw.githubusercontent.com/devops-infra/.github/refs/tags/v1/templates/dockerized/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: Check Azure CLI and Alpine package versions
cmds:
- task: scripts:dependency:update
test:structure:
desc: Run container-structure-tests against the built image
cmds:
- task: scripts:test:structure
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 Azure CLI version from Dockerfile
cmds:
- task: scripts:version:get
version:set:
desc: Validate version format
cmds:
- task: scripts:version:set