forked from netblue30/firejail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
49 lines (44 loc) · 1.62 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
# Basic notes: builds firejail on 5 different systems for 2 package systems:
# 1. Debian-based systems. Use debian:jessie to ensure reasonable backwards
# compat and ubuntu:rolling for new setups
# 2. Redhat-based systems. Use centos:latest for reasonable backwards compat
# and fedora:latest for new setups
# 3. Alpine for installing directly from source
# Also builds apparmor package for Ubuntu LTS
build_ubuntu_package:
image: ubuntu:rolling
script:
- apt-get update -qq
- apt-get install -y -qq build-essential lintian
- ./configure --prefix=/usr && make deb && dpkg -i firejail*.deb
build_debian_package:
image: debian:jessie
script:
- apt-get update -qq
- apt-get install -y -qq build-essential lintian
- ./configure --prefix=/usr && make deb && dpkg -i firejail*.deb
build_redhat_package:
image: centos:latest
script:
- yum update -y
- yum install -y rpm-build gcc make
- ./configure --prefix=/usr && make rpms && yum install -y firejail*.rpm
build_fedora_package:
image: fedora:latest
script:
- dnf update -y
- dnf install -y rpm-build gcc make
- ./configure --prefix=/usr && make rpms && rpm -i firejail*.rpm
build_src_package:
image: alpine:latest
script:
- apk update
- apk upgrade
- apk add build-base linux-headers
- ./configure --prefix=/usr && make && make install-strip
build_apparmor:
image: ubuntu:latest
script:
- apt-get update -qq
- apt-get install -y -qq build-essential lintian libapparmor-dev
- ./configure --prefix=/usr && make deb-apparmor && dpkg -i firejail-apparmor*.deb