intellij-idea-ultimate/.gitlab-ci.yml

48 lines
1.3 KiB
YAML
Raw Normal View History

default:
2023-05-02 18:48:33 +02:00
image: ubuntu:lunar
variables:
PACKAGE: "intellij-idea-ultimate"
TZ: UTC
DEBIAN_FRONTEND: noninteractive
NAME: "Marcel Kapfer"
EMAIL: "opensource@mmk2410.org"
stages:
- build
2022-04-05 18:11:33 +02:00
- deploy
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
2022-04-05 18:11:33 +02:00
deploy-job:
image: ubuntu:$UBUNTU_VERSION
2022-04-05 18:11:33 +02:00
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
- dch -D $UBUNTU_VERSION -p -l +$UBUNTU_VERSION "Upstream version $VERSION."
- debuild -S -sa -k6D289F254B41A009B6AB5AC3122720F932D5CE46
2022-04-05 18:11:33 +02:00
- cd ..
- dput ppa:mmk2410/intellij-idea "$PACKAGE"_"$VERSION"-1+"$UBUNTU_VERSION"1_source.changes
2022-04-05 18:11:33 +02:00
rules:
- if: $CI_COMMIT_TAG
parallel:
matrix:
2023-05-02 18:48:33 +02:00
- UBUNTU_VERSION: [trusty, xenial, bionic, focal, kinetic, jammy, lunar]