Commit f72b0750 authored by Michael Loipfuehrer's avatar Michael Loipfuehrer

gitlab ci debian deploy

parent c0f14855
Pipeline #250 passed with stages
in 1 minute and 30 seconds
default:
image: debian-buster-go-builder:v1
image: debian-buster-go-builder:v2
# Is performed before the scripts in the stages step
before_script:
- source /etc/profile
# Load the ssh private key from the gitlab build variables to enable dupload
# to connect to the repo via scp
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan repo.stusta.mhn.de >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
# Defines stages which are to be executed
stages:
- build
- upload
# Stage "build"
run-build:
......@@ -21,13 +31,19 @@ run-build:
- mv ../ocsp-forwarder*.tar.gz build/
- mv ../ocsp-forwarder*.dsc build/
- mv ../ocsp-forwarder*.buildinfo build/
# This stage is only executed for new tags
only:
- tags
# The files which are to be made available in GitLab
artifacts:
paths:
- build/*
upload:
stage: upload
script:
- echo "Uploading debian package to ssn repository"
- ssh repo@repo.stusta.mhn.de "echo SSH-Connection working"
- dupload -f -t ssn_repo build/wumpe*.changes
when: manual
only:
- master
......@@ -15,3 +15,9 @@ ocsp-forwarder (0.3) buster; urgency=medium
* add postinstall script to add system user
-- Michael Loipfuehrer <michael.loipfuehrer@stusta.de> Sun, 11 Aug 2019 23:15:28 +0200
ocsp-forwarder (0.4) buster; urgency=medium
* test for version bump
-- Michael Loipfuehrer <michael.loipfuehrer@stusta.de> Sun, 19 Aug 2019 20:15:28 +0200
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