From 661558ba6db8f1ab20b3e74b71d34eae6157c74c Mon Sep 17 00:00:00 2001 From: Thomas Gruber Date: Mon, 22 Nov 2021 16:48:21 +0100 Subject: [PATCH 1/5] Update rpmbuild.yml --- .github/workflows/rpmbuild.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/rpmbuild.yml b/.github/workflows/rpmbuild.yml index a2ae5e8..acb2046 100644 --- a/.github/workflows/rpmbuild.yml +++ b/.github/workflows/rpmbuild.yml @@ -7,6 +7,10 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Install Golang + run: | + apt install golang + - name: build RPM package id: rpm uses: naveenrajm7/rpmbuild@master From 92105602c27ffee7f502b108fc13fa5e99a31ad1 Mon Sep 17 00:00:00 2001 From: Thomas Gruber Date: Mon, 22 Nov 2021 16:53:53 +0100 Subject: [PATCH 2/5] Update rpmbuild.yml --- .github/workflows/rpmbuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rpmbuild.yml b/.github/workflows/rpmbuild.yml index acb2046..a187ffd 100644 --- a/.github/workflows/rpmbuild.yml +++ b/.github/workflows/rpmbuild.yml @@ -9,7 +9,7 @@ jobs: - name: Install Golang run: | - apt install golang + sudo apt install -y golang - name: build RPM package id: rpm From 531761d3238c4e8345f405f438e4306132917c6e Mon Sep 17 00:00:00 2001 From: Thomas Gruber Date: Mon, 22 Nov 2021 17:04:39 +0100 Subject: [PATCH 3/5] Update rpmbuild.yml --- .github/workflows/rpmbuild.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rpmbuild.yml b/.github/workflows/rpmbuild.yml index a187ffd..ccc65fe 100644 --- a/.github/workflows/rpmbuild.yml +++ b/.github/workflows/rpmbuild.yml @@ -13,9 +13,11 @@ jobs: - name: build RPM package id: rpm - uses: naveenrajm7/rpmbuild@master + uses: naveenrajm7/rpmbuild@centos8 with: spec_file: "scripts/cc-metric-collector.spec" + run: | + sudo yum install golang - name: Upload artifact uses: actions/upload-artifact@v1.0.0 From 5ac48350eb261d44298757c165684d6b857bc461 Mon Sep 17 00:00:00 2001 From: Thomas Gruber Date: Mon, 22 Nov 2021 17:19:41 +0100 Subject: [PATCH 4/5] Update rpmbuild.yml --- .github/workflows/rpmbuild.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rpmbuild.yml b/.github/workflows/rpmbuild.yml index ccc65fe..b9adacc 100644 --- a/.github/workflows/rpmbuild.yml +++ b/.github/workflows/rpmbuild.yml @@ -7,17 +7,14 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Install Golang - run: | - sudo apt install -y golang + - name: Setup Golang + uses: actions/setup-go@v2.1.4 - - name: build RPM package + - name: Build RPM package id: rpm uses: naveenrajm7/rpmbuild@centos8 with: spec_file: "scripts/cc-metric-collector.spec" - run: | - sudo yum install golang - name: Upload artifact uses: actions/upload-artifact@v1.0.0 From 5d9ce2bf6c2e4658a74faf088c3180dded7a4321 Mon Sep 17 00:00:00 2001 From: Thomas Gruber Date: Mon, 22 Nov 2021 17:22:05 +0100 Subject: [PATCH 5/5] Update rpmbuild.yml --- .github/workflows/rpmbuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rpmbuild.yml b/.github/workflows/rpmbuild.yml index b9adacc..7240c87 100644 --- a/.github/workflows/rpmbuild.yml +++ b/.github/workflows/rpmbuild.yml @@ -12,7 +12,7 @@ jobs: - name: Build RPM package id: rpm - uses: naveenrajm7/rpmbuild@centos8 + uses: naveenrajm7/rpmbuild@master with: spec_file: "scripts/cc-metric-collector.spec"