-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
54 lines (45 loc) · 1.38 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
version: '3'
vars:
VERSION: 0.1.3
NODE_VERSION: 15
NPM_VERSION: 7.5.3
HEROICONS_VERSION: 0.4.2
DOCKER_VOLUMES: "-v $(pwd):/app"
TAG: "svelte/heroicons"
tasks:
build:
cmds:
- |
DOCKER_BUILDKIT=1 docker build \
--build-arg NODE_VERSION={{.NODE_VERSION}} \
--build-arg HEROICONS_VERSION={{.HEROICONS_VERSION}} \
--build-arg NPM_VERSION={{.NPM_VERSION}} \
--tag {{.TAG}}:{{.VERSION}} .
- |
docker run {{.DOCKER_VOLUMES}} {{.DOCKER_RUN_PARAMS}} \
-it \
{{.TAG}}:{{.VERSION}} \
npm install
generate-icon-data:
cmds:
- |
docker run {{.DOCKER_VOLUMES}} {{.DOCKER_RUN_PARAMS}} \
-it \
{{.TAG}}:{{.VERSION}} \
./bin/generate-heroicon-data.sh
build-npm-dist:
cmds:
- |
docker run {{.DOCKER_VOLUMES}} {{.DOCKER_RUN_PARAMS}} \
-it \
{{.TAG}}:{{.VERSION}} \
npm run build
publish:
cmds:
- echo "TODO"
shell:
cmds:
- |
docker run {{.DOCKER_VOLUMES}} {{.DOCKER_RUN_PARAMS}} \
-it --entrypoint /bin/bash \
{{.TAG}}:{{.VERSION}}