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

First attempt at using gitlab-ci

parent 77ada111
Pipeline #15736 failed with stages
in 1 minute and 10 seconds
stages:
- build
- deploy
before_script:
- pwd
- ls
- ls ..
- rm -v ../*.deb || true
build-debian-stretch:
cache: {}
stage: build
image: debian:stretch
artifacts:
expire_in: 1h
paths:
- build-stretch
script:
- pwd
- ls
- ls ..
- apt-get update && apt-get upgrade -y
- apt-get install debhelper -y
- package="mp-rude"
- version="1.3.11"
- target="${package}_${version}_all"
- mkdir build-stretch
- rm -rf build-stretch
- cp -dR --preserve=mode "${package}" "build-stretch/$target"
- sed -i -e "s/{VERSION}/${version}/" "build-stretch/${target}/DEBIAN/control"
- dpkg -b "build-stretch/${target}"
deploy-apt:
stage: deploy
image: debian:stretch
when: manual
artifacts:
paths:
- build-stretch
script:
- pwd
- apt-get update && apt-get upgrade -y && 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/*.deb jenkins@apt.uninett.no:/www/apt.uninett.no/htdocs/debian/pool/stretch/mp/binary-all/m/
- 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