-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path.gitlab-ci.yml
63 lines (53 loc) · 1.37 KB
/
.gitlab-ci.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
57
58
59
60
61
62
63
stages:
- build
# .hoverBuildPackaged is a template job that we re-use for a number of concrete
# build jobs. This allows us to have a single job definition that is re-used for
# all the separate targets.
.hoverBuildPackaged:
stage: build
image: goflutter/hover:v0.47.2
cache:
key: one-key-4-all
paths:
- /root/.pub-cache
- /root/.cache/go-build
script:
- declare -x VERSION_NAME=$(git describe --tags | sed 's/-//g')
- cd stocks && hover build ${PACKAGING_TYPE} --version-number ${VERSION_NAME}
artifacts:
paths:
- stocks/go/build/outputs/${PACKAGING_TYPE}
expire_in: 20 weeks
## Build
build:darwin-dmg:
variables:
PACKAGING_TYPE: darwin-dmg
extends: .hoverBuildPackaged
build:darwin-pkg:
variables:
PACKAGING_TYPE: darwin-pkg
extends: .hoverBuildPackaged
build:linux-appimage:
variables:
PACKAGING_TYPE: linux-appimage
extends: .hoverBuildPackaged
build:linux-deb:
variables:
PACKAGING_TYPE: linux-deb
extends: .hoverBuildPackaged
build:linux-rpm:
variables:
PACKAGING_TYPE: linux-rpm
extends: .hoverBuildPackaged
build:linux-pkg:
variables:
PACKAGING_TYPE: linux-pkg
extends: .hoverBuildPackaged
build:linux-snap:
variables:
PACKAGING_TYPE: linux-snap
extends: .hoverBuildPackaged
build:windows-msi:
variables:
PACKAGING_TYPE: windows-msi
extends: .hoverBuildPackaged