lemonldap-ng/.gitlab-ci.yml

74 lines
1.3 KiB
YAML
Raw Normal View History

2018-06-02 01:54:40 +02:00
.build_job: &job_build
stage: build
script:
- apt-get update && apt-get -y dist-upgrade
- ci-build-pkg
artifacts:
expire_in: 1 day
paths:
- result/*
2017-12-13 22:24:53 +01:00
stages:
2018-06-02 01:54:40 +02:00
- build
- sign
- deploy
2017-12-13 22:24:53 +01:00
2018-06-02 01:54:40 +02:00
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:
DEPLOY_DOMAIN: ow2.io
environment:
name: PPA
url: http://${CI_PROJECT_NAMESPACE}.${DEPLOY_DOMAIN}/${CI_PROJECT_NAME}
script:
- cd $CI_PROJECT_DIR
- ci-pages-ppa
- ci-pages-home
- ci-pages-tree
dependencies:
- sign
2017-12-13 22:24:53 +01:00
artifacts:
2018-06-02 01:57:17 +02:00
expire_in: 1 day
2017-12-13 22:24:53 +01:00
paths:
2018-06-02 01:54:40 +02:00
- public
only:
- master