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

Away with cruft - use build.sh and keep nastiness there

parent 4875bb21
Pipeline #15742 failed with stages
in 36 seconds
......@@ -2,12 +2,6 @@ stages:
- build
- deploy
before_script:
- pwd
- ls
- ls ..
- rm -v ../*.deb || true
build-debian-stretch:
cache: {}
stage: build
......@@ -17,39 +11,21 @@ build-debian-stretch:
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.12"
- target="${package}_${version}_all"
- rm -rf build-stretch
- mkdir build-stretch
- cp -dR --preserve=mode "${package}" "build-stretch/${target}"
- sed -i -e "s/{VERSION}/${version}/" "build-stretch/${target}/DEBIAN/control"
- cat "build-stretch/${target}/DEBIAN/control"
- chmod o-w -R build-stretch
- ls -l "build-stretch/${target}"
- ls -l "build-stretch/${target}/DEBIAN"
- dpkg -b "build-stretch/${target}"
- ./build.sh
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
- 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/
- scp -v 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
......@@ -8,14 +8,15 @@ apt-get update
apt-get -y upgrade
package="mp-rude"
version="1.3.11"
#version=$(git describe|perl -p -e 'chomp;s/v([^-]+)(-(\d+)-g.+)?$/\1+\3/;s/\+$//')
version="1.3.13"
target="${package}_${version}_all"
rm -rf "$target"
cp -dR --preserve=mode "${package}" "$target"
cp -dR --preserve=mode "${package}" "${target}"
sed -i -e "s/{VERSION}/${version}/" "${target}/DEBIAN/control"
chmod o-w -R "${target}"
dpkg -b "$target"
ls -l *.deb
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