mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 11:43:59 +01:00
Add gitlab CI config for packaging
Trigger packaging on change to dkms.conf in master/development
This commit is contained in:
parent
43a251240a
commit
08f2d80ce1
31
.gitlab-ci.yml
Normal file
31
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
image: debian:latest
|
||||||
|
|
||||||
|
variables:
|
||||||
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
PACKAGES_FOLDER_NAME: $CI_PROJECT_DIR/packages
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- apt-get update -qq
|
||||||
|
- apt-get install -qq -y dpkg dpkg-dev make rpm tar > /dev/null 2>&1
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
|
||||||
|
packaging:
|
||||||
|
stage: build
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- master
|
||||||
|
- development
|
||||||
|
changes:
|
||||||
|
- dkms.conf
|
||||||
|
script:
|
||||||
|
- make package
|
||||||
|
- mkdir $PACKAGES_FOLDER_NAME
|
||||||
|
- mv *.deb $PACKAGES_FOLDER_NAME/
|
||||||
|
- mv *.rpm $PACKAGES_FOLDER_NAME/
|
||||||
|
artifacts:
|
||||||
|
name: tuxedo-keyboard-${CI_COMMIT_REF_SLUG}
|
||||||
|
when: on_success
|
||||||
|
paths:
|
||||||
|
- $PACKAGES_FOLDER_NAME/*
|
Loading…
Reference in a new issue