lemonldap-ng/.gitlab-ci.yml

116 lines
2.2 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
2020-06-01 11:44:04 +02:00
# Workaround for bionic
- DEBIAN_FRONTEND=noninteractive apt-get -y install tzdata
2018-06-02 01:54:40 +02:00
- ci-build-pkg
artifacts:
2018-06-17 23:03:13 +02:00
expire_in: 1 hour
2018-06-02 01:54:40 +02:00
paths:
- result/*
2019-10-31 21:33:09 +01:00
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
2018-12-01 13:47:07 +01:00
- sed -i "1{s/-2) /$suffix) /}" debian/changelog
2018-06-02 01:54:40 +02:00
- sed -i 's/3.0 (quilt)/3.0 (native)/' debian/source/format
build_stretch:
image: buildpkg/debian:stretch
<<: *job_build
2018-12-07 00:28:00 +01:00
build_buster:
image: buildpkg/debian:buster
<<: *job_build
2018-06-02 01:54:40 +02:00
#build_xenial:
# image: buildpkg/ubuntu:xenial
# <<: *job_build
build_bionic:
image: buildpkg/ubuntu:bionic
<<: *job_build
2019-10-31 21:33:09 +01:00
build_centos_7:
2020-04-30 21:09:47 +02:00
image: buildpkg/centos:7
stage: build
script:
- rm -f /etc/yum.repos.d/CentOS-Sources.repo
- yum -y install epel-release
- make rpm-dist
- ci-build-pkg
artifacts:
expire_in: 1 day
paths:
- result/*
build_centos_8:
image: buildpkg/centos:8
stage: build
script:
- yum-config-manager --enable PowerTools
- yum-config-manager --enable AppStream
- yum -y install epel-release
- make rpm-dist
- ci-build-pkg
artifacts:
expire_in: 1 day
paths:
- result/*
2019-10-31 21:33:09 +01:00
2018-06-02 01:54:40 +02:00
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
2018-12-07 00:28:00 +01:00
- build_buster
2018-06-02 01:54:40 +02:00
# - build_xenial
- build_bionic
2019-10-31 21:33:09 +01:00
- build_centos_7
2020-05-16 16:11:44 +02:00
# - build_centos_8
2018-06-02 01:54:40 +02:00
artifacts:
expire_in: 1 day
paths:
- result/*
2019-02-11 16:30:12 +01:00
only:
- master
2018-06-02 01:54:40 +02:00
pages:
image: buildpkg/debian:stretch
stage: deploy
variables:
2018-06-02 09:05:37 +02:00
# Default page dir
# PAGES_DIR: public
PAGES_HOST: ow2.io
2018-06-02 01:54:40 +02:00
environment:
name: PPA
2018-06-02 09:05:37 +02:00
url: http://${CI_PROJECT_NAMESPACE}.${PAGES_HOST}/${CI_PROJECT_NAME}
2018-06-02 01:54:40 +02:00
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