diff options
author | Antenore Gatta <antenore@simbiosi.org> | 2021-05-25 11:52:33 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2021-05-25 11:52:33 +0300 |
commit | e69a0ba6cc4bee99c65614899df6811df14b31f5 (patch) | |
tree | 21a3fde5695cadbd72c5299e0aefd4c1d1b1ef3e | |
parent | a739a32d41d4536fc9490e7a8d2845b2d94b56e2 (diff) |
Adding CI
-rw-r--r-- | .gitlab-ci.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..f8a882b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +image: registry.gitlab.com/remmina/remmina/ubuntu:18.04 +stages: +- build +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 +ppa:build: + stage: build + before_script: + - apt-get update -qq + - apt-get install -y -qq devscripts + scripts: + - '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 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 + - 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 + - dch -v ${TAG}-1+ppa1.1 "Upstream release" -D unstable + - git commit -s -m "Upstream release" -a + - git push + when: on_success |