1
|
variables:
|
2
|
GIT_DEPTH: 1
|
3
|
|
4
|
# Is performed before the scripts in the stages step
|
5
|
before_script:
|
6
|
- source /etc/profile
|
7
|
|
8
|
# Defines stages which are to be executed
|
9
|
stages:
|
10
|
- clonezilla
|
11
|
- packaging
|
12
|
|
13
|
# Stage "build"
|
14
|
rebuild-squashfs:
|
15
|
image: debian:buster
|
16
|
stage: clonezilla
|
17
|
only:
|
18
|
- tags
|
19
|
script:
|
20
|
- apt-get update -qy
|
21
|
- apt-get install -y build-essential debhelper libncurses5-dev libglib2.0-dev libgeoip-dev libtokyocabinet-dev zlib1g-dev libncursesw5-dev libbz2-dev unzip wget squashfs-tools openssh-client
|
22
|
- make full-clean
|
23
|
- make rebuild-squashfs
|
24
|
|
25
|
# The files which are to be made available in GitLab
|
26
|
artifacts:
|
27
|
paths:
|
28
|
- live/Clonezilla-Live-Version
|
29
|
- live/filesystem.squashfs
|
30
|
- live/initrd.img
|
31
|
- live/vmlinuz
|
32
|
- utils/clonezilla_live.pub
|
33
|
|
34
|
|
35
|
build-buster:
|
36
|
image: debian:buster
|
37
|
stage: packaging
|
38
|
only:
|
39
|
- tags
|
40
|
script:
|
41
|
- rm ../fuss-fucc* || true
|
42
|
- apt-get update -qy
|
43
|
- apt-get install -y build-essential debhelper libncurses5-dev libglib2.0-dev libgeoip-dev libtokyocabinet-dev zlib1g-dev libncursesw5-dev libbz2-dev pandoc devscripts texlive
|
44
|
- debuild -us -uc
|
45
|
- mkdir dist
|
46
|
- rm -f ../clonezilla-orig.zip
|
47
|
- cp ../* dist || true
|
48
|
|
49
|
# The files which are to be made available in GitLab
|
50
|
artifacts:
|
51
|
paths:
|
52
|
- dist
|
53
|
|