Skip to content

Commit

Permalink
Add .gitlab-ci.yaml file to build packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendonj committed Sep 24, 2018
1 parent 0219bf9 commit 526f7fc
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
stages:
- build
- deploy

.generic_apt_build_template: &generic_apt_build
apt-get update && apt-get -y upgrade &&
apt-get install -y ca-certificates devscripts dpkg-dev equivs lsb-release &&
export DEBEMAIL='[email protected]' &&
export DEBFULLNAME='Brendon Jones' &&
export CODENAME=`lsb_release -c -s` &&
mk-build-deps -i -r -t 'apt-get -f -y --force-yes' &&
dpkg-buildpackage -b -us -uc -rfakeroot &&
mkdir -p built-packages/$CODENAME/ || true &&
mv ../*.deb built-packages/$CODENAME/

build-bionic:
stage: build
image: ubuntu:bionic
script:
- *generic_apt_build
artifacts:
paths:
- built-packages/*
expire_in: 1 day
only:
- tags

build-xenial:
stage: build
image: ubuntu:xenial
script:
- *generic_apt_build
artifacts:
paths:
- built-packages/*
expire_in: 1 day
only:
- tags

build-stretch:
stage: build
image: debian:stretch
script:
- *generic_apt_build
artifacts:
paths:
- built-packages/*
expire_in: 1 day
only:
- tags

build-jessie:
stage: build
image: debian:jessie
script:
- *generic_apt_build
artifacts:
paths:
- built-packages/*
expire_in: 1 day
only:
- tags

deploy-packages:
stage: deploy
image: ubuntu:bionic
script:
- ls built-packages/
artifacts:
paths:
- built-packages/*
expire_in: 1 month
only:
- tags

0 comments on commit 526f7fc

Please sign in to comment.