Refactor .gitlab-ci.yml
This commit is contained in:
parent
186dff968a
commit
786f485d78
|
@ -1,15 +1,22 @@
|
||||||
.build_job: &job_build
|
.build_job:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
|
||||||
- apt-get update && apt-get -y dist-upgrade
|
|
||||||
# Workaround for bionic
|
|
||||||
- DEBIAN_FRONTEND=noninteractive apt-get -y install tzdata
|
|
||||||
- ci-build-pkg
|
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 1 hour
|
expire_in: 1 hour
|
||||||
paths:
|
paths:
|
||||||
- result/*
|
- result/*
|
||||||
|
|
||||||
|
.debian_build_job:
|
||||||
|
extends: .build_job
|
||||||
|
script:
|
||||||
|
- apt-get update && apt-get -y dist-upgrade
|
||||||
|
- DEBIAN_FRONTEND=noninteractive apt-get -y install tzdata
|
||||||
|
- ci-build-pkg
|
||||||
|
before_script:
|
||||||
|
- env | grep ^CI_
|
||||||
|
# Converting to native package...
|
||||||
|
- sed -i "1{s/-1) /$suffix) /}" debian/changelog
|
||||||
|
- sed -i "1{s/-2) /$suffix) /}" debian/changelog
|
||||||
|
- sed -i 's/3.0 (quilt)/3.0 (native)/' debian/source/format
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
@ -18,53 +25,42 @@ stages:
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- env | grep ^CI_
|
- env | grep ^CI_
|
||||||
# Converting to native package...
|
|
||||||
- sed -i "1{s/-1) /$suffix) /}" debian/changelog
|
|
||||||
- sed -i "1{s/-2) /$suffix) /}" debian/changelog
|
|
||||||
- sed -i 's/3.0 (quilt)/3.0 (native)/' debian/source/format
|
|
||||||
|
|
||||||
build_stretch:
|
build_stretch:
|
||||||
|
extends: .debian_build_job
|
||||||
image: buildpkg/debian:stretch
|
image: buildpkg/debian:stretch
|
||||||
<<: *job_build
|
|
||||||
|
|
||||||
build_buster:
|
build_buster:
|
||||||
|
extends: .debian_build_job
|
||||||
image: buildpkg/debian:buster
|
image: buildpkg/debian:buster
|
||||||
<<: *job_build
|
|
||||||
|
|
||||||
#build_xenial:
|
#build_xenial:
|
||||||
|
# extends: .debian_build_job
|
||||||
# image: buildpkg/ubuntu:xenial
|
# image: buildpkg/ubuntu:xenial
|
||||||
# <<: *job_build
|
# <<: *job_build
|
||||||
|
|
||||||
build_bionic:
|
build_bionic:
|
||||||
|
extends: .debian_build_job
|
||||||
image: buildpkg/ubuntu:bionic
|
image: buildpkg/ubuntu:bionic
|
||||||
<<: *job_build
|
|
||||||
|
|
||||||
build_centos_7:
|
build_centos_7:
|
||||||
|
extends: .build_job
|
||||||
image: buildpkg/centos:7
|
image: buildpkg/centos:7
|
||||||
stage: build
|
|
||||||
script:
|
script:
|
||||||
- rm -f /etc/yum.repos.d/CentOS-Sources.repo
|
- rm -f /etc/yum.repos.d/CentOS-Sources.repo
|
||||||
- yum -y install epel-release
|
- yum -y install epel-release
|
||||||
- make rpm-dist
|
- make rpm-dist
|
||||||
- ci-build-pkg
|
- ci-build-pkg
|
||||||
artifacts:
|
|
||||||
expire_in: 1 day
|
|
||||||
paths:
|
|
||||||
- result/*
|
|
||||||
|
|
||||||
build_centos_8:
|
build_centos_8:
|
||||||
|
extends: .build_job
|
||||||
image: buildpkg/centos:8
|
image: buildpkg/centos:8
|
||||||
stage: build
|
|
||||||
script:
|
script:
|
||||||
- yum-config-manager --enable PowerTools
|
- yum-config-manager --enable PowerTools
|
||||||
- yum-config-manager --enable AppStream
|
- yum-config-manager --enable AppStream
|
||||||
- yum -y install epel-release
|
- yum -y install epel-release
|
||||||
- make rpm-dist
|
- make rpm-dist
|
||||||
- ci-build-pkg
|
- ci-build-pkg
|
||||||
artifacts:
|
|
||||||
expire_in: 1 day
|
|
||||||
paths:
|
|
||||||
- result/*
|
|
||||||
|
|
||||||
sign:
|
sign:
|
||||||
image: buildpkg/debian:stretch
|
image: buildpkg/debian:stretch
|
||||||
|
|
Loading…
Reference in New Issue