cc-metric-collector/.github/workflows/rpmbuild.yml

27 lines
551 B
YAML
Raw Normal View History

2021-11-22 16:33:06 +01:00
name: RPM Build
on: push
jobs:
build:
2021-11-22 16:34:35 +01:00
runs-on: ubuntu-latest
2021-11-22 16:33:06 +01:00
steps:
- uses: actions/checkout@v2
2021-11-22 16:48:21 +01:00
- name: Install Golang
run: |
2021-11-22 16:53:53 +01:00
sudo apt install -y golang
2021-11-22 16:48:21 +01:00
2021-11-22 16:33:06 +01:00
- name: build RPM package
id: rpm
2021-11-22 17:04:39 +01:00
uses: naveenrajm7/rpmbuild@centos8
2021-11-22 16:33:06 +01:00
with:
spec_file: "scripts/cc-metric-collector.spec"
2021-11-22 17:04:39 +01:00
run: |
sudo yum install golang
2021-11-22 16:33:06 +01:00
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
with:
name: Binary RPM
path: ${{ steps.rpm.outputs.rpm_dir_path }}