.gitlab-ci.yml 1.46 KB
Newer Older
1 2 3 4 5 6
.build_job: &job_build
  stage: build
  script:
     - apt-get update && apt-get -y dist-upgrade
     - ci-build-pkg
  artifacts:
7
    expire_in: 1 hour
8 9 10
    paths:
      - result/*

11
stages:
12 13 14
- build
- sign
- deploy
15

16 17 18 19
before_script:
  - env | grep ^CI_
  # Converting to native package...
  - sed -i "1{s/-1) /$suffix) /}" debian/changelog
Clément OUDOT's avatar
Clément OUDOT committed
20
  - sed -i "1{s/-2) /$suffix) /}" debian/changelog
21 22 23 24 25 26
  - sed -i 's/3.0 (quilt)/3.0 (native)/' debian/source/format

build_stretch:
  image: buildpkg/debian:stretch
  <<: *job_build

27 28 29 30
build_buster:
  image: buildpkg/debian:buster
  <<: *job_build

31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
#build_xenial:
#  image: buildpkg/ubuntu:xenial
#  <<: *job_build

build_bionic:
  image: buildpkg/ubuntu:bionic
  <<: *job_build

sign:
  image: buildpkg/debian:stretch
  stage: sign
#  variables:
#    SIGN_USER: firstname.lastname@orange.com
#    GPG_PRIVATE_KEY:
  script:
    - cd $CI_PROJECT_DIR
    - ci-sign-pkg
  dependencies:
    - build_stretch
50
    - build_buster
51 52 53 54 55 56 57 58 59 60 61
#    - build_xenial
    - build_bionic
  artifacts:
    expire_in: 1 day
    paths:
      - result/*

pages:
  image: buildpkg/debian:stretch
  stage: deploy
  variables:
Christian Bayle's avatar
Christian Bayle committed
62 63 64
    # Default page dir
    # PAGES_DIR: public
    PAGES_HOST: ow2.io
65 66
  environment:
    name: PPA
Christian Bayle's avatar
Christian Bayle committed
67
    url: http://${CI_PROJECT_NAMESPACE}.${PAGES_HOST}/${CI_PROJECT_NAME}
68 69 70 71 72 73 74
  script:
    - cd $CI_PROJECT_DIR
    - ci-pages-ppa
    - ci-pages-home
    - ci-pages-tree
  dependencies:
    - sign
75
  artifacts:
Christian Bayle's avatar
Christian Bayle committed
76
    expire_in: 1 day
77
    paths:
78 79 80 81
      - public
  only:
    - master