From 1bfdf51c868226d6e3c354d0044f8eaf28b10ecf Mon Sep 17 00:00:00 2001 From: Christoffer Sandberg Date: Fri, 17 Apr 2020 12:32:46 +0200 Subject: [PATCH] Add gitlab ci package build trigger for release branch --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..3238163 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,28 @@ +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_packages + +packaging: + stage: build_packages + only: + refs: + - release + 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/*