gitlab: Add CI job for packaging scripts

Message-id: <20190920180802.27752-1-major@redhat.com>
Patchwork-id: 272742
O-Subject: [ARK INTERNAL PATCH] [redhat] gitlab: Add CI job for packaging scripts
Bugzilla:
RH-Acked-by: Laura Abbott <labbott@redhat.com>

This job runs each time the `internal` branch is updated. It gathers
the packaging-related files from the repo and artifacts them inside
GitLab. This allows CI jobs to quickly download packaging scripts to
use with other upstream repositories.

Signed-off-by: Major Hayden <major@redhat.com>
Signed-off-by: Jeremy Cline <jcline@redhat.com>
This commit is contained in:
Major Hayden 2019-09-20 18:08:02 +00:00 committed by Justin M. Forbes
parent c961b9779e
commit a073db41be
No known key found for this signature in database
GPG Key ID: B8FA7924A4B1C140
2 changed files with 21 additions and 0 deletions

3
.gitignore vendored
View File

@ -162,6 +162,9 @@ x509.genkey
configs/*.config
localversion
# GitLab CI configuration
!.gitlab-ci.yml
# Clang's compilation database file
/compile_commands.json

View File

@ -1,3 +1,5 @@
# GitLab CI configuration file
image: registry.gitlab.com/cki-project/experimental/containers/builder-fedora30
stages:
@ -9,3 +11,19 @@ variables:
test_rh_configs:
stage: test
script: make rh-configs
# This job exports the packaging-related scripts and files for use with other
# upstream kernel trees.
redhat_export:
stage: test
script:
- git log -1 --pretty=format:%H
only:
refs:
- internal
artifacts:
when: always
paths:
- makefile
- Makefile.rhelver
- redhat/