.gitlab-ci.yml 1.33 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 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 54 55
before_script:
  - env | grep ^CI_
  # Converting to native package...
  - sed -i "1{s/-1) /$suffix) /}" debian/changelog
  - 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
56 57 58
    # Default page dir
    # PAGES_DIR: public
    PAGES_HOST: ow2.io
59 60
  environment:
    name: PPA
Christian Bayle's avatar
Christian Bayle committed
61
    url: http://${CI_PROJECT_NAMESPACE}.${PAGES_HOST}/${CI_PROJECT_NAME}
62 63 64 65 66 67 68
  script:
    - cd $CI_PROJECT_DIR
    - ci-pages-ppa
    - ci-pages-home
    - ci-pages-tree
  dependencies:
    - sign
69
  artifacts:
Christian Bayle's avatar
Christian Bayle committed
70
    expire_in: 1 day
71
    paths:
72 73 74 75
      - public
  only:
    - master