.gitlab-ci.yml 1.38 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 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 54 55 56
  - sed -i 's/3.0 (quilt)/3.0 (native)/' debian/source/format

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

#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
#    - 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
57 58 59
    # Default page dir
    # PAGES_DIR: public
    PAGES_HOST: ow2.io
60 61
  environment:
    name: PPA
Christian Bayle's avatar
Christian Bayle committed
62
    url: http://${CI_PROJECT_NAMESPACE}.${PAGES_HOST}/${CI_PROJECT_NAME}
63 64 65 66 67 68 69
  script:
    - cd $CI_PROJECT_DIR
    - ci-pages-ppa
    - ci-pages-home
    - ci-pages-tree
  dependencies:
    - sign
70
  artifacts:
Christian Bayle's avatar
Christian Bayle committed
71
    expire_in: 1 day
72
    paths:
73 74 75 76
      - public
  only:
    - master