-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
55 lines (52 loc) · 2.42 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
stages:
- Build
ubuntu-18.04_amd64:
stage: Build
tags:
- docker
- x86_64
script:
- docker build --force-rm -t blur-monitor-build-ubuntu-18.04 -f installers/blur-monitor_ubuntu-18.04_amd64/Dockerfile.build .
- docker create --name blur-monitor-build-ubuntu-18.04-writable blur-monitor-build-ubuntu-18.04
- docker cp blur-monitor-build-ubuntu-18.04-writable:/tmp/blur-monitor/installers/blur-monitor_ubuntu-18.04_amd64/blur-monitor_ubuntu-18.04_amd64.deb installers/blur-monitor_ubuntu-18.04_amd64/
- docker cp blur-monitor-build-ubuntu-18.04-writable:/tmp/blur-monitor/bin/blur-monitor_linux_amd64.tar.gz bin/
after_script:
- docker container rm -fv blur-monitor-build-ubuntu-18.04-writable
- docker image rm -f blur-monitor-build-ubuntu-18.04
artifacts:
paths:
- installers/blur-monitor_ubuntu-18.04_amd64/blur-monitor_ubuntu-18.04_amd64.deb
- bin/blur-monitor_linux_amd64.tar.gz
expire_in: 1 week
debian-9_amd64:
stage: Build
tags:
- docker
- x86_64
script:
- docker build --force-rm -t blur-monitor-build-debian-9 -f installers/blur-monitor_debian-9_amd64/Dockerfile.build .
- docker create --name blur-monitor-build-debian-9-writable blur-monitor-build-debian-9
- docker cp blur-monitor-build-debian-9-writable:/tmp/blur-monitor/installers/blur-monitor_debian-9_amd64/blur-monitor_debian-9_amd64.deb installers/blur-monitor_debian-9_amd64/
after_script:
- docker container rm -fv blur-monitor-build-debian-9-writable
- docker image rm -f blur-monitor-build-debian-9
artifacts:
paths:
- installers/blur-monitor_debian-9_amd64/blur-monitor_debian-9_amd64.deb
expire_in: 1 week
ubuntu-16.04_amd64:
stage: Build
tags:
- docker
- x86_64
script:
- docker build --force-rm -t blur-monitor-build-ubuntu-16.04 -f installers/blur-monitor_ubuntu-16.04_amd64/Dockerfile.build .
- docker create --name blur-monitor-build-ubuntu-16.04-writable blur-monitor-build-ubuntu-16.04
- docker cp blur-monitor-build-ubuntu-16.04-writable:/tmp/blur-monitor/installers/blur-monitor_ubuntu-16.04_amd64/blur-monitor_ubuntu-16.04_amd64.deb installers/blur-monitor_ubuntu-16.04_amd64/
after_script:
- docker container rm -fv blur-monitor-build-ubuntu-16.04-writable
- docker image rm -f blur-monitor-build-ubuntu-16.04
artifacts:
paths:
- installers/blur-monitor_ubuntu-16.04_amd64/blur-monitor_ubuntu-16.04_amd64.deb
expire_in: 1 week