Commit a6b3574a authored by Kolbjørn Barmen's avatar Kolbjørn Barmen
Browse files

Added building of ubuntu packages

parent 52435530
Pipeline #36754 failed with stages
in 1 minute and 51 seconds
......@@ -52,14 +52,95 @@ build-debian-buster:
- mkdir build-buster
- mv -v rude/rude*.deb crude/crude*.deb build-buster/
build-ubuntu-xenial:
cache: {}
stage: build
image: ubuntu:xenial
artifacts:
expire_in: 1h
paths:
- build-xenial
script:
- apt-get update
- apt-get install
-q -y --no-install-recommends
-o Dpkg::Options::="--force-confdef"
-o Dpkg::Options::="--force-confold"
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-xenial
- mkdir build-xenial
- mv -v rude/rude*.deb crude/crude*.deb build-xenial/
build-ubuntu-bionic:
cache: {}
stage: build
image: ubuntu:bionic
artifacts:
expire_in: 1h
paths:
- build-bionic
script:
- apt-get update
- apt-get install
-q -y --no-install-recommends
-o Dpkg::Options::="--force-confdef"
-o Dpkg::Options::="--force-confold"
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-bionic
- mkdir build-bionic
- mv -v rude/rude*.deb crude/crude*.deb build-bionic/
build-ubuntu-focal:
cache: {}
stage: build
image: ubuntu:focal
artifacts:
expire_in: 1h
paths:
- build-focal
script:
- apt-get update
- apt-get install
-q -y --no-install-recommends
-o Dpkg::Options::="--force-confdef"
-o Dpkg::Options::="--force-confold"
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-focal
- mkdir build-focal
- mv -v rude/rude*.deb crude/crude*.deb build-focal/
deploy-apt:
stage: deploy
image: debian:stretch
image: debian:buster
image: debian:xenial
image: debian:bionic
image: debian:focal
artifacts:
paths:
- build-stretch
- build-buster
- build-xenial
- build-bionic
- build-focal
script:
- apt-get update && apt-get install openssh-client -y
- (
......@@ -74,8 +155,20 @@ deploy-apt:
/www/apt.uninett.no/htdocs/debian/pool/stretch/main/binary-amd64/c/crude
/www/apt.uninett.no/htdocs/debian/pool/buster/main/binary-amd64/r/rude
/www/apt.uninett.no/htdocs/debian/pool/buster/main/binary-amd64/c/crude
/www/apt.uninett.no/htdocs/ubuntu/pool/xenial/main/binary-amd64/r/rude
/www/apt.uninett.no/htdocs/ubuntu/pool/xenial/main/binary-amd64/c/crude
/www/apt.uninett.no/htdocs/ubuntu/pool/bionic/main/binary-amd64/r/rude
/www/apt.uninett.no/htdocs/ubuntu/pool/bionic/main/binary-amd64/c/crude
/www/apt.uninett.no/htdocs/ubuntu/pool/focal/main/binary-amd64/r/rude
/www/apt.uninett.no/htdocs/ubuntu/pool/focal/main/binary-amd64/c/crude
- 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/
- scp build-buster/rude*.deb jenkins@apt.uninett.no:/www/apt.uninett.no/htdocs/debian/pool/buster/main/binary-amd64/r/rude/
- scp build-buster/crude*.deb jenkins@apt.uninett.no:/www/apt.uninett.no/htdocs/debian/pool/buster/main/binary-amd64/c/crude/
- ssh jenkins@apt.uninett.no /www/apt.uninett.no/bin/mkrepo.debian
- scp build-xenial/rude*.deb jenkins@apt.uninett.no:/www/apt.uninett.no/htdocs/ubuntu/pool/xenial/main/binary-amd64/r/rude/
- scp build-xenial/crude*.deb jenkins@apt.uninett.no:/www/apt.uninett.no/htdocs/ubuntu/pool/xenial/main/binary-amd64/c/crude/
- scp build-bionic/rude*.deb jenkins@apt.uninett.no:/www/apt.uninett.no/htdocs/ubuntu/pool/bionic/main/binary-amd64/r/rude/
- scp build-bionic/crude*.deb jenkins@apt.uninett.no:/www/apt.uninett.no/htdocs/ubuntu/pool/bionic/main/binary-amd64/c/crude/
- scp build-focal/rude*.deb jenkins@apt.uninett.no:/www/apt.uninett.no/htdocs/ubuntu/pool/focal/main/binary-amd64/r/rude/
- scp build-focal/crude*.deb jenkins@apt.uninett.no:/www/apt.uninett.no/htdocs/ubuntu/pool/focal/main/binary-amd64/c/crude/
- ssh jenkins@apt.uninett.no /www/apt.uninett.no/bin/mkrepo
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