Added GitLab CI Pipeline for ubuntu deb package

This commit is contained in:
Marcel Kapfer 2021-12-02 21:41:07 +01:00
parent 0cffdf7ac0
commit eeeb48923d
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

25
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,25 @@
default:
image: ubuntu:impish
variables:
PACKAGE: "intellij-idea-community"
TZ: UTC
DEBIAN_FRONTEND: noninteractive
stages:
- build
build-job:
stage: build
script:
- apt update && apt install -y git devscripts debhelper
- export VERSION=$(git describe --abbrev=0 --tags | cut -d'v' -f2)
- cd "$PACKAGE"_"$VERSION" || exit
- debuild -us -uc
- export PACKAGE_FILE="$PACKAGE"_"$VERSION"-1_all.deb
artifacts:
name: $PACKAGE_FILE
paths:
- ./*.deb
rules:
- if: $CI_COMMIT_TAG