build pages with packages
This commit is contained in:
parent
19bd3a8597
commit
949628772f
|
@ -1,27 +1,72 @@
|
||||||
stages:
|
.build_job: &job_build
|
||||||
- build
|
|
||||||
|
|
||||||
build-debian:
|
|
||||||
stage: build
|
stage: build
|
||||||
image: debian:stretch
|
script:
|
||||||
script: |
|
- apt-get update && apt-get -y dist-upgrade
|
||||||
echo "Installing build dependencies..."
|
- ci-build-pkg
|
||||||
apt-get update
|
artifacts:
|
||||||
apt-get install -y build-essential
|
expire_in: 1 day
|
||||||
apt-get build-dep -y .
|
paths:
|
||||||
|
- result/*
|
||||||
|
|
||||||
echo "Converting to native package..."
|
stages:
|
||||||
suffix="~$CI_COMMIT_SHA"
|
- build
|
||||||
sed -i "1{s/-1) /$suffix) /}" debian/changelog
|
- sign
|
||||||
sed -i 's/3.0 (quilt)/3.0 (native)/' debian/source/format
|
- deploy
|
||||||
|
|
||||||
echo "Building LemonLDAP..."
|
before_script:
|
||||||
dpkg-buildpackage
|
- 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
|
||||||
|
|
||||||
echo "Moving artifacts..."
|
build_stretch:
|
||||||
mkdir artifacts
|
image: buildpkg/debian:stretch
|
||||||
mv ../*.tar.xz ../*.dsc ../*.changes ../*.deb artifacts
|
<<: *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
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- 'artifacts/*'
|
- public
|
||||||
expire_in: 1 week
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue