-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathtaskfile.yml
41 lines (34 loc) · 1.03 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
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"
tasks:
# check*
check:lint:
desc: "🔍 Linting code: Running pre-commit"
cmd: pre-commit run -a
check:
desc: "🔍 Run all checks"
cmds:
- task: check:lint
## build:docker:*
build:docker:arm64:
desc: "🏗️ Build docker image for linux/arm64"
cmds:
- pwd && docker buildx build --platform "linux/arm64" -t test:localdev-arm64 .
dir: '{{.USER_WORKING_DIR}}'
build:docker:amd64:
desc: "🏗️ Build docker image for linux/amd64"
cmds:
- docker buildx build --platform "linux/amd64" -t test:localdev-amd64 .
dir: '{{.USER_WORKING_DIR}}'
build:docker:arm7:
desc: "🏗️ Build docker image for linux/arm/v7"
cmds:
- docker buildx build --platform "linux/arm/v7" -t test:localdev-arm7 .
dir: '{{.USER_WORKING_DIR}}'
build:
desc: 🏗️ Build for all archs
cmds:
- pwd
- task: build:docker:arm64
- task: build:docker:amd64
- task: build:docker:arm7