mirror of
https://git.icinga.com/packaging/rpm-icinga-php-thirdparty.git
synced 2025-07-25 15:04:26 +02:00
Initial commit
This commit is contained in:
commit
5cc77ea62f
170
.gitlab-ci.yml
Normal file
170
.gitlab-ci.yml
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- test
|
||||||
|
- upload
|
||||||
|
|
||||||
|
variables:
|
||||||
|
DOCKER_IMAGE_BASE: registry.icinga.com/build-docker
|
||||||
|
#ICINGA_BUILD_TYPE: snapshot
|
||||||
|
#ICINGA_BUILD_UPSTREAM_BRANCH:
|
||||||
|
|
||||||
|
.build: &build
|
||||||
|
stage: build
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
|
||||||
|
script:
|
||||||
|
- icinga-build-package
|
||||||
|
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
|
||||||
|
|
||||||
|
###################################
|
||||||
|
# EPEL
|
||||||
|
###################################
|
||||||
|
build/centos/8:
|
||||||
|
<<: *build
|
||||||
|
variables:
|
||||||
|
DOCKER_IMAGE: centos/8
|
||||||
|
|
||||||
|
test/centos/8:
|
||||||
|
<<: *test
|
||||||
|
variables:
|
||||||
|
DOCKER_IMAGE: centos/8
|
||||||
|
dependencies:
|
||||||
|
- build/centos/8
|
||||||
|
|
||||||
|
upload/epel/8:
|
||||||
|
<<: *upload
|
||||||
|
dependencies:
|
||||||
|
- build/centos/8
|
||||||
|
|
||||||
|
build/centos/7:
|
||||||
|
<<: *build
|
||||||
|
variables:
|
||||||
|
DOCKER_IMAGE: centos/7
|
||||||
|
|
||||||
|
test/centos/7:
|
||||||
|
<<: *test
|
||||||
|
variables:
|
||||||
|
DOCKER_IMAGE: centos/7
|
||||||
|
dependencies:
|
||||||
|
- build/centos/7
|
||||||
|
|
||||||
|
upload/epel/7:
|
||||||
|
<<: *upload
|
||||||
|
dependencies:
|
||||||
|
- build/centos/7
|
||||||
|
|
||||||
|
###################################
|
||||||
|
# Fedora
|
||||||
|
###################################
|
||||||
|
build/fedora/34:
|
||||||
|
<<: *build
|
||||||
|
variables:
|
||||||
|
DOCKER_IMAGE: fedora/34
|
||||||
|
|
||||||
|
test/fedora/34:
|
||||||
|
<<: *test
|
||||||
|
variables:
|
||||||
|
DOCKER_IMAGE: fedora/34
|
||||||
|
dependencies:
|
||||||
|
- build/fedora/34
|
||||||
|
|
||||||
|
upload/fedora/34:
|
||||||
|
<<: *upload
|
||||||
|
dependencies:
|
||||||
|
- build/fedora/34
|
||||||
|
|
||||||
|
build/fedora/33:
|
||||||
|
<<: *build
|
||||||
|
variables:
|
||||||
|
DOCKER_IMAGE: fedora/33
|
||||||
|
|
||||||
|
test/fedora/33:
|
||||||
|
<<: *test
|
||||||
|
variables:
|
||||||
|
DOCKER_IMAGE: fedora/33
|
||||||
|
dependencies:
|
||||||
|
- build/fedora/33
|
||||||
|
|
||||||
|
upload/fedora/33:
|
||||||
|
<<: *upload
|
||||||
|
dependencies:
|
||||||
|
- build/fedora/33
|
||||||
|
|
||||||
|
###################################
|
||||||
|
# SLES
|
||||||
|
###################################
|
||||||
|
build/sles/15.2:
|
||||||
|
<<: *build
|
||||||
|
variables:
|
||||||
|
DOCKER_IMAGE: sles/15.2
|
||||||
|
|
||||||
|
test/sles/15.2:
|
||||||
|
<<: *test
|
||||||
|
variables:
|
||||||
|
DOCKER_IMAGE: sles/15.2
|
||||||
|
dependencies:
|
||||||
|
- build/sles/15.2
|
||||||
|
|
||||||
|
upload/SUSE/15.2:
|
||||||
|
<<: *upload
|
||||||
|
dependencies:
|
||||||
|
- build/sles/15.2
|
||||||
|
|
||||||
|
build/sles/12.5:
|
||||||
|
<<: *build
|
||||||
|
variables:
|
||||||
|
DOCKER_IMAGE: sles/12.5
|
||||||
|
|
||||||
|
test/sles/12.5:
|
||||||
|
<<: *test
|
||||||
|
variables:
|
||||||
|
DOCKER_IMAGE: sles/12.5
|
||||||
|
dependencies:
|
||||||
|
- build/sles/12.5
|
||||||
|
|
||||||
|
upload/SUSE/12.5:
|
||||||
|
<<: *upload
|
||||||
|
dependencies:
|
||||||
|
- build/sles/12.5
|
||||||
|
|
||||||
|
###################################
|
||||||
|
# openSUSE
|
||||||
|
###################################
|
||||||
|
build/opensuse/15.2:
|
||||||
|
<<: *build
|
||||||
|
variables:
|
||||||
|
DOCKER_IMAGE: opensuse/15.2
|
||||||
|
|
||||||
|
test/opensuse/15.2:
|
||||||
|
<<: *test
|
||||||
|
variables:
|
||||||
|
DOCKER_IMAGE: opensuse/15.2
|
||||||
|
dependencies:
|
||||||
|
- build/opensuse/15.2
|
||||||
|
|
||||||
|
upload/openSUSE/15.2:
|
||||||
|
<<: *upload
|
||||||
|
dependencies:
|
||||||
|
- build/opensuse/15.2
|
42
icinga-php-thirdparty.spec
Normal file
42
icinga-php-thirdparty.spec
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# Icinga PHP Thirdparty for Icinga Web 2 | (c) 2021 NETWAYS GmbH | GPLv2+
|
||||||
|
|
||||||
|
%global revision 1
|
||||||
|
%global module_name icinga-php-thirdparty
|
||||||
|
|
||||||
|
Name: %{module_name}
|
||||||
|
Version: 0.10.0
|
||||||
|
Release: %{revision}%{?dist}
|
||||||
|
Summary: Icinga PHP Thirdparty for Icinga Web 2
|
||||||
|
Group: Applications/System
|
||||||
|
License: GPLv2+
|
||||||
|
URL: https://icinga.com
|
||||||
|
Source0: https://github.com/Icinga/%{module_name}/archive/refs/heads/nightly/%{version}-dev.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%global basedir %{_datadir}/icinga-php/vendor
|
||||||
|
|
||||||
|
Requires: icinga-php-common
|
||||||
|
|
||||||
|
%description
|
||||||
|
Icinga PHP Thirdparty
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -n %{module_name}-nightly-%{version}-dev
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -vp %{buildroot}%{basedir}
|
||||||
|
|
||||||
|
cp -vr vendor/* %{buildroot}%{basedir}
|
||||||
|
cp -vr composer.* %{buildroot}%{basedir}
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md LICENSE
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{basedir}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Jun 10 2021 Henrik Triem <henrik.triem@icinga.com> - 0.10.0-1
|
||||||
|
- Release 0.10.0-dev
|
Loading…
x
Reference in New Issue
Block a user