-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
73 lines (69 loc) · 1.91 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
64
65
66
67
68
69
70
71
72
73
---
variables:
DEBIAN_OLDSTABLE_CODE: stretch
DEBIAN_OLDSTABLE_VERSION: 9
STRETCH_FULLNAME: Debian 9 "stretch"
DEBIAN_STABLE_CODE: buster
DEBIAN_STABLE_VERSION: 10
BUSTER_FULLNAME: Debian 10 "buster"
UBUNTU_OLDLTS_CODE: xenial
UBUNTU_OLDLTS_VERSION: 1604
XENIAL_FULLNAME: Xenial Xerus
MINT_OLDLTS_CODE: sara
SARA_FULLNAME: Sara
UBUNTU_LTS_CODE: bionic
UBUNTU_LTS_VERSION: 1804
BIONIC_FULLNAME: Bionic Beaver
MINT_LTS_CODE: tara
TARA_FULLNAME: Tara
UBUNTU_STABLE_CODE: eoan
UBUNTU_STABLE_VERSION: 1910
EOAN_FULLNAME: Eoan Ermine
FEDORA_OLDSTABLE_VERSION: 30
FEDORA_STABLE_VERSION: 31
CENTOS_OLDSTABLE_VERSION: 7
CENTOS_STABLE_VERSION: 8
OPENSUSE_OLDSTABLE_VERSION: "15.0"
OPENSUSE_STABLE_VERSION: "15.1"
stages:
- build
- sign
build:
image: debian:stable
stage: build
before_script:
- apt-get update
- apt-get -y install --no-install-recommends devscripts equivs build-essential fakeroot rpm
- mk-build-deps -r -i -t "apt-get -y -o Debug::pkgProblemResolver=yes --no-install-recommends"
- mkdir -p products/deb
- mkdir -p products/rpm
script:
- dpkg-buildpackage -uc -us -i -I.git -rfakeroot
- dcmd mv ../eid-archive*changes products/deb
- make rpms
- cp -a /root/rpmbuild/RPMS/noarch/* products/rpm
artifacts:
paths:
- products
sign-deb:
stage: sign
tags:
- repobuilder
only:
- gitlab
script:
- set -e
- if [ -z "$REPREPRO_BASE_DIR"]; then export REPREPRO_BASE_DIR=/srv/repo/reprepro; fi
- ./scripts/ensure-reprepro.pl
- for deb in products/deb/*.changes; do if ./scripts/deb-is-needed.pl $deb; then dcmd mv $deb /srv/repo/reprepro/incoming; fi; done
- reprepro processincoming incoming
- for deb in products/deb/*.changes; do ./scripts/deb-copy-if-needed.pl $deb; done
sign-fed:
stage: sign
tags:
- repobuilder
only:
- gitlab
script:
- set -e
- for rpm in products/rpm/*.rpm; do ./scripts/rpm-sign-and-move.pl $rpm; done