blob: 09d65c4134cf2131d177a8ea9c2ff038c7cf7fe6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
---
image: registry.gitlab.com/remmina/remmina/ubuntu:18.04
variables:
GIT_SUBMODULE_STRATEGY: recursive
DEB_PPA: ppa:remmina-ppa-team/remmina-next
FREERDP_DAILY_PPA: ppa:remmina-ppa-team/remmina-next-daily
DEBFULLNAME: Remmina CI
DEBEMAIL: admin@remmina.org
stages:
- build
ppa build:
stage: build
before_script:
- apt-get update -qq
- apt-get install -y -qq devscripts
script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY_R" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- git config --global user.name "Antenore Gatta"
- git config --global user.email "antenore@simbiosi.org"
- git clone git@gitlab.com:Remmina/Remmina.git Remmina
- cd Remmina
- export TAG="$(git describe --tags --abbrev=0 | tail -1 | tr -d 'v')"
- cd -
- git clone git@gitlab.com:Remmina/Remmina-Ubuntu-PPA.git Remmina-Ubuntu-PPA
- cd Remmina-Ubuntu-PPA
- grep ${TAG}-1+ppa1.1 debian/changelog && exit
- dch -v ${TAG}-1+ppa1.1 "Upstream release"
- dch -r ''
- git commit -s -m "Upstream release" -a
- git push origin master
only:
- triggers
- web
when: on_success
|