-
Notifications
You must be signed in to change notification settings - Fork 36
/
dobi.yaml
41 lines (35 loc) · 862 Bytes
/
dobi.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
meta:
project: example-tagging
default: tag-images
image=app:
image: example/tagged-app
dockerfile: Dockerfile.app
context: .
tags:
- 'latest'
- '{git.short-sha}'
- '{git.sha}'
- '{time.YYYY-MM-DDThh-mm:}'
- '{env.APP_VERSION}'
annotations:
description: "Build the application image"
image=db:
image: example/tagged-db
dockerfile: Dockerfile.db
context: .
tags:
- 'latest'
- '{git.short-sha}'
- '{git.sha}'
- '{time.YYYY-MM-DDThh-mm:}'
- '{env.DB_VERSION:dev}'
annotations:
description: "Build the database image"
alias=tag-images:
tasks: ['app:tag', 'db:tag']
annotations:
description: "Build and tag images"
alias=clean:
tasks: ['app:rm', 'db:rm']
annotations:
description: "Remove all the images"