Skip to content
Snippets Groups Projects
Commit 75b28890 authored by Markus Frosch's avatar Markus Frosch
Browse files

git init

parents
No related branches found
No related tags found
No related merge requests found
## Editor
.*.sw[op]
*~
## Ruby
Gemfile.lock
.ruby-*
## modulesync
/modules
source 'https://rubygems.org'
gem 'modulesync',
git: 'https://github.com/lazyfrosch/modulesync.git',
branch: 'feature/erb-metadata' # also see https://github.com/voxpupuli/modulesync/pull/168
---
.gitlab-ci.yml:
deb:
debian:
title: Debian
releases:
buster:
stretch:
ubuntu:
title: Ubuntu
releases:
disco:
bionic:
xenial:
rpm:
centos:
repo: epel
title: EPEL
releases:
7:
6:
fedora:
title: Fedora
releases:
30:
29:
sles:
title: SLES
repo: SUSE
releases:
15.0:
12.4:
opensuse:
repo: openSUSE
title: openSUSE
releases:
15.0:
---
- deb-icingaweb2-module-audit
- deb-icingaweb2-module-businessprocess
- deb-icingaweb2-module-cube
- deb-icingaweb2-module-director
- deb-icingaweb2-module-fileshipper
- deb-icingaweb2-module-generictts
- deb-icingaweb2-module-graphite
- deb-icingaweb2-module-incubator
- deb-icingaweb2-module-ipl
- deb-icingaweb2-module-reactbundle
- rpm-icingaweb2-module-audit
- rpm-icingaweb2-module-businessprocess
- rpm-icingaweb2-module-cube
- rpm-icingaweb2-module-director
- rpm-icingaweb2-module-fileshipper
- rpm-icingaweb2-module-generictts
- rpm-icingaweb2-module-graphite
- rpm-icingaweb2-module-incubator
- rpm-icingaweb2-module-ipl
- rpm-icingaweb2-module-reactbundle
#########################
# MANAGED BY MODULESYNC #
#########################
<%-
module_name = @metadata[:module_name]
if module_name =~ /^(\w+)-/
variant = $1
project_name = module_name.gsub(/^\w+-/, '')
else
raise 'Could not detect package variant'
end
-%>
stages:
- build
- test
- upload
variables:
DOCKER_IMAGE_BASE: registry.icinga.com/build-docker
.build: &build
stage: build
tags:
- docker
image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
script:
- icinga-build-package
cache:
key: "${CI_JOB_NAME}"
paths:
- ccache/
- '<%= project_name %>.git'
artifacts:
paths:
- build/*
expire_in: 1 week
.test: &test
stage: test
tags:
- docker
image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
script:
- find build/
- icinga-build-test
.upload: &upload
stage: upload
tags:
- docker
image: ${DOCKER_IMAGE_BASE}/upload
script:
- find build/
- icinga-build-upload-aptly
only:
- tags
<% @configs[variant].each do |name, os_config| -%>
###################################
# <%= os_config['title'] ? os_config['title'] : name %>
###################################
<% os_config['releases'].each do |release, release_config| -%>
<%
job_name = "#{name}/#{release}"
docker_image = "#{name}/#{release}"
if os_config['repo']
upload_job = os_config['repo'] + "/#{release}"
else
upload_job = job_name
end
-%>
build/<%= job_name %>:
<<: *build
variables:
DOCKER_IMAGE: <%= docker_image %>
test/<%= job_name %>:
<<: *test
variables:
DOCKER_IMAGE: <%= docker_image %>
dependencies:
- build/<%= job_name %>
upload/<%= upload_job %>:
<<: *upload
dependencies:
- build/<%= job_name %>
<% end -%>
<% end -%>
---
git_base: 'git@git.icinga.com:'
namespace: packaging
branch: modulesync
message: "Update from Icinga packaging modulesync_modules"
...
# vim: syntax=yaml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment