Add deploy job to GitLab Pipeline
This commit is contained in:
parent
cd2ed37b07
commit
fb3e000d30
1 changed files with 15 additions and 0 deletions
|
@ -8,6 +8,7 @@ variables:
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- deploy
|
||||||
|
|
||||||
build-job:
|
build-job:
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -23,3 +24,17 @@ build-job:
|
||||||
- ./*.deb
|
- ./*.deb
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG
|
- 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
|
||||||
|
|
Loading…
Reference in a new issue