Added .gitlab-ci.yml

This commit is contained in:
Deon George 2019-01-28 11:05:48 +11:00
parent a51c5e93af
commit 0a95944dc8
1 changed files with 38 additions and 0 deletions

38
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,38 @@
stages:
- build
- deploy
variables:
VERSION: "3.4.4.1"
before_script:
- env|sort
- pwd
build:x86_64:
image: ${CI_REGISTRY}/leenooks/ci-apt:x86_64
stage: build
script:
- apt-get update
- cd libcl; dpkg-buildpackage -us -uc
- mkdir build
- ls -al ../
- mv ../${CI_PROJECT_NAME}*.deb build
tags:
- apt
- x86_64
only:
- debian
artifacts:
paths:
- build/*deb
expire_in: 1 week
deploy:x86_64:
stage: deploy
dependencies:
- build:x86_64
script:
- reprepro -b /apt includedeb $(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release) build/${CI_PROJECT_NAME}_${VERSION}*.deb
tags:
- reprepro