35 lines
764 B
YAML
35 lines
764 B
YAML
|
build:x86_64:
|
||
|
image: ${CI_REGISTRY}/leenooks/ci-apt:x86_64-${DISTRO}
|
||
|
stage: build
|
||
|
script:
|
||
|
- apt-get update
|
||
|
- apt-get install -y make gcc zlib1g-dev libperl-dev libbz2-dev ncurses-dev automake flex bison
|
||
|
- git clone https://github.com/pgul/binkd.git
|
||
|
- cd binkd
|
||
|
- git apply ../debian.patch
|
||
|
- dpkg-buildpackage -us -uc
|
||
|
- cd ..
|
||
|
- mkdir build
|
||
|
- ls -al ./
|
||
|
- mv ./${CI_PROJECT_NAME}*.deb ./build/
|
||
|
tags:
|
||
|
- apt
|
||
|
- x86_64
|
||
|
only:
|
||
|
- master
|
||
|
artifacts:
|
||
|
paths:
|
||
|
- build/*deb
|
||
|
expire_in: 1 week
|
||
|
|
||
|
deploy:x86_64:
|
||
|
stage: deploy
|
||
|
dependencies:
|
||
|
- build:x86_64
|
||
|
only:
|
||
|
- master
|
||
|
script:
|
||
|
- reprepro.exp -- -b /apt includedeb ${DISTRO} build/${CI_PROJECT_NAME}_${VERSION}*.deb
|
||
|
tags:
|
||
|
- reprepro
|