-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
56 lines (46 loc) · 1.12 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
version: '3'
env:
JQ: docker run --rm -i ghcr.io/jqlang/jq:1.7
tasks:
default:
cmds:
- task --list
# nektos/act
act:push:
desc: Test release
cmds:
- act push {{.CLI_ARGS}}
act:push:version:
desc: Test release for specific version
summary: |
Example:
task act pv="8.4.1"
vars:
PHP_VERSIONS: '{{ .pv | default "8.4.1"}}'
cmds:
- act push --input version={{.PHP_VERSIONS}}
act:job:prepare:
desc: Act test "prepare" job
cmds:
- act -j prepare {{.CLI_ARGS}}
act:job:build:
desc: Act test "build" job
cmds:
- act -j build {{.CLI_ARGS}}
act:job:merge:
desc: Act test "merge" job
cmds:
- act -j merge {{.CLI_ARGS}}
# buildx bake
bake:
desc: Bake
vars:
PHP_VERSIONS: '{{ .pv | default "8.1.20,8.2.26,8.3.5,8.4.1"}}'
cmds:
- PHP_VERSIONS={{.PHP_VERSIONS}} docker buildx bake
bake:print:
desc: Bake print options without building
vars:
PHP_VERSIONS: '{{ .pv | default "8.1.20,8.2.26,8.3.5,8.4.1"}}'
cmds:
- PHP_VERSIONS={{.PHP_VERSIONS}} docker buildx bake --print | $JQ