Project

General

Profile

Download (1.29 KB) Statistics
| Branch: | Tag: | Revision:

fuss-fucc / .gitlab-ci.yml @ master

1 f203ddb7 Marco Marinello
variables:
2
  GIT_DEPTH: 1
3
4 5e1ff98a Marco Marinello
# 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 dabcb127 Marco Marinello
  - clonezilla
11 0759e089 Marco Marinello
  - packaging
12 5e1ff98a Marco Marinello
13
# Stage "build"
14 dabcb127 Marco Marinello
rebuild-squashfs:
15
  image: debian:buster
16
  stage: clonezilla
17 140c293d Marco Marinello
  only:
18
    - tags
19 5e1ff98a Marco Marinello
  script:
20
    - apt-get update -qy
21 f203ddb7 Marco Marinello
    - 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 9dd0bd75 Marco Marinello
    - make full-clean
23 5e1ff98a Marco Marinello
    - 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 c32ee088 Marco Marinello
      - utils/clonezilla_live.pub
33 0759e089 Marco Marinello
34
35
build-buster:
36
  image: debian:buster
37
  stage: packaging
38 140c293d Marco Marinello
  only:
39
    - tags
40 0759e089 Marco Marinello
  script:
41 9549994e Marco Marinello
    - rm ../fuss-fucc* || true
42 0759e089 Marco Marinello
    - apt-get update -qy
43 93894c58 Marco Marinello
    - 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 286a5020 Marco Marinello
    - debuild -us -uc
45 0759e089 Marco Marinello
    - mkdir dist
46 286a5020 Marco Marinello
    - rm -f ../clonezilla-orig.zip
47 0759e089 Marco Marinello
    - cp ../* dist || true
48
49
  # The files which are to be made available in GitLab
50
  artifacts:
51
    paths:
52
      - dist