Commit 94962877 authored by Christian Bayle's avatar Christian Bayle

build pages with packages

parent 19bd3a85
.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/*
stages: stages:
- build - build
- sign
- deploy
build-debian: before_script:
stage: build - env | grep ^CI_
image: debian:stretch # Converting to native package...
script: | - sed -i "1{s/-1) /$suffix) /}" debian/changelog
echo "Installing build dependencies..." - sed -i 's/3.0 (quilt)/3.0 (native)/' debian/source/format
apt-get update
apt-get install -y build-essential build_stretch:
apt-get build-dep -y . image: buildpkg/debian:stretch
<<: *job_build
echo "Converting to native package..."
suffix="~$CI_COMMIT_SHA" #build_xenial:
sed -i "1{s/-1) /$suffix) /}" debian/changelog # image: buildpkg/ubuntu:xenial
sed -i 's/3.0 (quilt)/3.0 (native)/' debian/source/format # <<: *job_build
echo "Building LemonLDAP..." build_bionic:
dpkg-buildpackage image: buildpkg/ubuntu:bionic
<<: *job_build
echo "Moving artifacts..."
mkdir artifacts sign:
mv ../*.tar.xz ../*.dsc ../*.changes ../*.deb artifacts 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment