-
Notifications
You must be signed in to change notification settings - Fork 2
/
Taskfile.yaml
73 lines (63 loc) · 2.08 KB
/
Taskfile.yaml
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
# https://taskfile.dev
version: "3"
vars:
VERSION: 0.0.1
tasks:
run: go run -ldflags "-X main.version={{.VERSION}}" .
build: go build -ldflags "-X main.version={{.VERSION}}" .
install: go build -ldflags "-X main.version=$(version)" -o /usr/local/bin/devkit .
push-images:
cmds:
- task: push-elastic-image
- task: push-grafana-image
- task: push-mailtrap-image
- task: push-unleash-image
- task: push-template-images
push-elastic-image:
dir: helpers/loop-elastic
vars:
DOCKER_IMAGE: adrianliechti/loop-elastic
cmds:
- docker buildx build --push --platform linux/arm64,linux/amd64 --tag {{.DOCKER_IMAGE}} .
push-grafana-image:
dir: helpers/loop-grafana
vars:
DOCKER_IMAGE: adrianliechti/loop-grafana
cmds:
- docker buildx build --push --platform linux/arm64,linux/amd64 --tag {{.DOCKER_IMAGE}} .
push-mailtrap-image:
dir: helpers/loop-mailtrap
vars:
DOCKER_IMAGE: adrianliechti/loop-mailtrap
cmds:
- docker buildx build --push --platform linux/arm64,linux/amd64 --tag {{.DOCKER_IMAGE}} .
push-unleash-image:
dir: helpers/loop-unleash
vars:
DOCKER_IMAGE: adrianliechti/loop-unleash
cmds:
- docker buildx build --push --platform linux/arm64,linux/amd64 --tag {{.DOCKER_IMAGE}} .
push-template-images:
cmds:
- task: push-template-image
vars: { STACK: angular }
- task: push-template-image
vars: { STACK: aspnet }
- task: push-template-image
vars: { STACK: golang }
- task: push-template-image
vars: { STACK: nginx }
- task: push-template-image
vars: { STACK: pack }
- task: push-template-image
vars: { STACK: python }
- task: push-template-image
vars: { STACK: react }
- task: push-template-image
vars: { STACK: spring }
push-template-image:
dir: helpers/loop-template/{{.STACK}}
vars:
DOCKER_IMAGE: adrianliechti/loop-template:{{.STACK}}
cmds:
- docker buildx build --push --platform linux/arm64,linux/amd64 --tag {{.DOCKER_IMAGE}} .