forked from elbb/bb-gitversion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversion.yaml
40 lines (34 loc) · 1.16 KB
/
version.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
# ===================================================
# mount points
# ===================================================
mount=mount-buildingblock-gitversion-source-dir:
bind: "{fs.projectdir}"
path: /git
read-only: false # needs to be read/write to work correctly!
mount=mount-buildingblock-gitversion-gen-dir:
bind: "{fs.projectdir}/gen/gitversion"
path: /gen
read-only: false
# ===================================================
# images
# ===================================================
image=image-buildingblock-gitversion:
image: "{env.BB_DOCKER_NAMESPACE}/bb-gitversion"
tags: ["{env.VERSION_BB_GITVERSION}"]
pull: once
# ===================================================
# jobs
# ===================================================
job=version:
use: image-buildingblock-gitversion
mounts:
- mount-buildingblock-gitversion-source-dir
- mount-buildingblock-gitversion-gen-dir
sources: "./"
artifact: "gen/gitversion/"
env:
- "USERID={user.uid}"
- "DEFAULT_BRANCH={env.DEFAULT_BRANCH:main}"
- "VERBOSE={env.VERSION_VERBOSE:1}"
annotations:
description: "-> generate version informations (auto called by dobi.sh)"