aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: 3eb41dc893cf7f725ec154656135d9db7bd8856d (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
stages:
  - images
  - publish

fedora:
  stage: images
  image: registry.gitlab.com/kraxel/rpm-package-builder:fedora
  before_script:
    - dnf install -y /usr/bin/guestfish /usr/bin/xz
  script:
    - ./Fedora-efi-grub2.sh
    - xz --threads=0 --verbose *.qcow2
    - tree -s -h -T "fedora images" -I "*.qcow2.xz" -H "$CI_JOB_URL/artifacts/file/" . > index.html
  artifacts:
    paths:
      - fedora-*.qcow2.xz
      - index.html

pages:
  stage: publish
  image: registry.gitlab.com/kraxel/rpm-package-builder:fedora
  dependencies:
    - fedora
  script:
    - mkdir public
    - mv index.html public
  artifacts:
    paths:
      - public/