2021-11-29 16:04:50 +01:00
|
|
|
name: Run RPM Build
|
2022-01-31 13:29:14 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '**'
|
2021-11-29 16:04:50 +01:00
|
|
|
|
|
|
|
jobs:
|
2022-01-30 14:54:36 +01:00
|
|
|
build-centos8:
|
2021-11-29 16:04:50 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: TomTheBear/rpmbuild@master
|
|
|
|
id: rpm
|
|
|
|
name: Build RPM package on CentOS8
|
|
|
|
with:
|
|
|
|
spec_file: "./scripts/cc-metric-collector.spec"
|
|
|
|
- name: Save RPM as artifact
|
|
|
|
uses: actions/upload-artifact@v1.0.0
|
|
|
|
with:
|
|
|
|
name: cc-metric-collector RPM CentOS8
|
|
|
|
path: ${{ steps.rpm.outputs.rpm_dir_path }}
|
|
|
|
- name: Save SRPM as artifact
|
|
|
|
uses: actions/upload-artifact@v1.0.0
|
|
|
|
with:
|
|
|
|
name: cc-metric-collector SRPM CentOS8
|
|
|
|
path: ${{ steps.rpm.outputs.source_rpm_path }}
|
2022-01-30 14:54:36 +01:00
|
|
|
build-centos-latest:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: TomTheBear/rpmbuild@centos_latest
|
|
|
|
id: rpm
|
|
|
|
name: Build RPM package on CentOS 'Latest'
|
|
|
|
with:
|
|
|
|
spec_file: "./scripts/cc-metric-collector.spec"
|
|
|
|
- name: Save RPM as artifact
|
|
|
|
uses: actions/upload-artifact@v1.0.0
|
|
|
|
with:
|
|
|
|
name: cc-metric-collector RPM CentOS 'Latest'
|
|
|
|
path: ${{ steps.rpm.outputs.rpm_dir_path }}
|
|
|
|
- name: Save SRPM as artifact
|
|
|
|
uses: actions/upload-artifact@v1.0.0
|
|
|
|
with:
|
|
|
|
name: cc-metric-collector SRPM CentOS 'Latest'
|
|
|
|
path: ${{ steps.rpm.outputs.source_rpm_path }}
|
|
|
|
build-alma-8_5:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: TomTheBear/rpmbuild@alma8.5
|
|
|
|
id: rpm
|
|
|
|
name: Build RPM package on AlmaLinux 8.5
|
|
|
|
with:
|
|
|
|
spec_file: "./scripts/cc-metric-collector.spec"
|
|
|
|
- name: Save RPM as artifact
|
|
|
|
uses: actions/upload-artifact@v1.0.0
|
|
|
|
with:
|
|
|
|
name: cc-metric-collector RPM AlmaLinux 8.5
|
|
|
|
path: ${{ steps.rpm.outputs.rpm_dir_path }}
|
|
|
|
- name: Save SRPM as artifact
|
|
|
|
uses: actions/upload-artifact@v1.0.0
|
|
|
|
with:
|
|
|
|
name: cc-metric-collector SRPM AlmaLinux 8.5
|
|
|
|
path: ${{ steps.rpm.outputs.source_rpm_path }}
|