Commit 4d065eeb authored by Kolbjørn Barmen's avatar Kolbjørn Barmen

Attempt to move building of rude and crude to gitlab-ci

parent e2e9153d
Pipeline #15764 failed with stages
in 21 seconds
stages:
- build
- deploy
build-debian-stretch:
cache: {}
stage: build
image: debian:stretch
artifacts:
expire_in: 1h
paths:
- build-stretch
script:
- apt-get update
- apt-get install --no-install-recommends -q -y \
-o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y \
build-essential autoconf ruby ruby-dev libpcap-dev
- gem install fpm
- autoheader autoconf/configure.in
- autoconf autoconf/configure.in > configure
- chmod 755 configure
- ./configure --enable-wall --with-debug-lvl=3 --prefix=/usr
- make deb
- rm -rf build-stretch
- mkdir build-stretch
- mv -v rude/rude*.deb crude/crude*.deb build-stretch/
deploy-apt:
stage: deploy
image: debian:stretch
artifacts:
paths:
- build-stretch
script:
- apt-get update && apt-get install ssh -y
- (
umask 077;
mkdir -p ~/.ssh;
echo "${SSH_PRIVKEY}" > ~/.ssh/id_rsa;
echo "${SSH_APT_HOSTKEY}" > ~/.ssh/known_hosts;
)
- scp build-stretch/rude*.deb jenkins@apt.uninett.no:/www/apt.uninett.no/htdocs/debian/pool/stretch/main/binary-amd64/r/rude/
- scp build-stretch/crude*.deb jenkins@apt.uninett.no:/www/apt.uninett.no/htdocs/debian/pool/stretch/main/binary-amd64/c/crude/
- ssh jenkins@apt.uninett.no /www/apt.uninett.no/bin/mkrepo.debian
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment