forked from ffurrer2/docker-bats
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
34 lines (30 loc) · 830 Bytes
/
Taskfile.yml
File metadata and controls
34 lines (30 loc) · 830 Bytes
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
# SPDX-License-Identifier: MIT
# https://taskfile.dev
version: '3'
includes:
docker: ./tasks/DockerTasks.yml
dockle: ./tasks/DockleTasks.yml
git: ./tasks/GitTasks.yml
hadolint: ./tasks/HadolintTasks.yml
markdownlint: ./tasks/MarkdownlintTasks.yml
trivy: ./tasks/TrivyTasks.yml
yamllint: ./tasks/YamllintTasks.yml
vars:
DOCKER_REGISTRY: ghcr.io
DOCKER_REPOSITORY: ffurrer2/bats
DOCKER_TAG: { sh: 'sed -n "s/^ARG BATS_CORE_VERSION=\([0-9]*\.[0-9]*\.[0-9]*\)/\1/p" Dockerfile' }
IMAGE_NAME: '{{.DOCKER_REGISTRY}}/{{.DOCKER_REPOSITORY}}:{{.DOCKER_TAG}}'
tasks:
default:
cmds:
- task --list
silent: true
lint:
desc: Run all linters
cmds:
- task: dockle:lint
- task: hadolint:lint
- task: markdownlint:lint
- task: trivy:image
- task: yamllint:lint
silent: true