Add Github Action to build RPM (#14)

* Update SPEC file

* Add clean target to Makefile

* add rpmbuild action

* Add missing build dependency

* Fix package name of golang for CentOS8

* Change outputs

* Fix file list and build requires

* Fix for file list

* Also upload SRPM
This commit is contained in:
Thomas Gruber
2021-11-29 16:04:50 +01:00
committed by GitHub
parent 28163f5d2e
commit 15cf16b46f
3 changed files with 41 additions and 8 deletions

View File

@@ -4,10 +4,17 @@ all: $(APP)
$(APP): metric-collector.go
make -C collectors
go get
go build -o $(APP) metric-collector.go
clean:
make -C collectors clean
rm -f $(APP)
fmt:
go fmt collectors/*.go
go fmt sinks/*.go
go fmt receivers/*.go
go fmt metric-collector.go
.PHONY: clean