aboutsummaryrefslogtreecommitdiffstats
path: root/gitlab-ci-rpms-tito.yml
blob: 5a1a8e745751500e61cb13630983df3d513ad80e (plain)
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
tito_fedora:
  stage: rpms
  image: registry.gitlab.com/kraxel/rpm-package-builder:fedora
  before_script:
    - dnf builddep -y *.spec
  script:
    - tito build --test --rpm --output rpms-fedora
    - createrepo rpms-fedora
  artifacts:
    paths:
      - rpms-fedora/

tito_centos8:
  stage: rpms
  image: registry.gitlab.com/kraxel/rpm-package-builder:centos8
  before_script:
    - dnf builddep -y *.spec
  script:
    - tito build --test --rpm --output rpms-centos8
    - createrepo rpms-centos8
  artifacts:
    paths:
      - rpms-centos8/

tito_centos7:
  stage: rpms
  image: registry.gitlab.com/kraxel/rpm-package-builder:centos7
  before_script:
    - yum-builddep -y *.spec
  script:
    - tito build --test --rpm --output rpms-centos7
    - createrepo rpms-centos7
  artifacts:
    paths:
      - rpms-centos7/

pages:
  stage: repo
  image: registry.gitlab.com/kraxel/rpm-package-builder:fedora
  dependencies:
    - tito_fedora
    - tito_centos8
    - tito_centos7
  script:
    - mkdir public
    - mv rpms-fedora public/fedora
    - mv rpms-centos8 public/centos8
    - mv rpms-centos7 public/centos7
    - tree -T "$CI_PROJECT_NAME rpms" --charset utf8 -H . public > index.html
    - mv index.html public
  artifacts:
    paths:
      - public/