This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
libcl/.gitlab-ci.yml

41 lines
702 B
YAML
Raw Normal View History

2019-01-28 00:05:48 +00:00
stages:
- build
- deploy
variables:
VERSION: "3.4.4.1"
2019-01-28 00:13:02 +00:00
before_script:
- env|sort
- pwd
2019-01-28 00:05:48 +00:00
build:x86_64:
image: ${CI_REGISTRY}/leenooks/ci-apt:x86_64
stage: build
script:
- apt-get update
2019-01-28 00:25:49 +00:00
- cd libcl; dpkg-buildpackage -us -uc; cd ..
2019-01-28 00:05:48 +00:00
- mkdir build
2019-01-28 00:25:49 +00:00
- ls -al ./
- mv ./${CI_PROJECT_NAME}*.deb ./build/
2019-01-28 00:05:48 +00:00
tags:
- apt
- x86_64
only:
2019-01-28 00:16:50 +00:00
- master
2019-01-28 00:05:48 +00:00
artifacts:
2019-01-28 00:13:02 +00:00
paths:
- build/*deb
expire_in: 1 week
2019-01-28 00:05:48 +00:00
deploy:x86_64:
stage: deploy
dependencies:
- build:x86_64
2019-01-28 00:16:50 +00:00
only:
- master
2019-01-28 00:05:48 +00:00
script:
- reprepro -b /apt includedeb $(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release) build/${CI_PROJECT_NAME}_${VERSION}*.deb
tags:
- reprepro