From 9e7b64bb35ab1fa8d0fca87c3dc0b3b98554f413 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Tue, 5 Apr 2022 18:09:24 +0200 Subject: [PATCH] Add deploy job to GitLab Pipeline --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 669cd83..a0b3c3d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,7 @@ variables: stages: - build + - deploy build-job: stage: build @@ -23,3 +24,18 @@ build-job: - ./*.deb rules: - if: $CI_COMMIT_TAG + +deploy-job: + stage: deploy + script: + - apt update && apt install -y git devscripts debhelper gnupg + - export VERSION=$(git describe --abbrev=0 --tags | cut -d'v' -f2) + - echo "$GPG_PRIVATE_KEY" | tr -d '\r' | gpg --import - + - echo "$GPG_PUBLIC_KEY" | tr -d '\r' | gpg --import - + - cd "$PACKAGE"_"$VERSION" || exit + - debuild -S -k6D289F254B41A009B6AB5AC3122720F932D5CE46 + - cd .. + - dput ppa:mmk2410/intellij-idea "$PACKAGE"_"$VERSION"-1_source.changes + rules: + - if: $CI_COMMIT_TAG +