Commit baa2276a authored by Kolbjørn Barmen's avatar Kolbjørn Barmen

Build to apt.uninett.no

parent 828fcda3
Pipeline #15759 failed with stages
in 38 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 git -y
- git submodule update --init
- docker build --no-cache -t rude-build .
- rm -rf build-stretch
- mkdir build-stretch
- docker run -i rude-build | tar -x -C 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