From 533f407b3bf4ca00f912e00a2abf90e650e12ec8 Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Mon, 7 Mar 2022 11:14:43 +0100 Subject: [PATCH] Remove separate workflows --- .github/workflows/AlmaLinux.yml | 64 ------------------- .../workflows/RedHatUniversalBaseImage.yml | 64 ------------------- 2 files changed, 128 deletions(-) delete mode 100644 .github/workflows/AlmaLinux.yml delete mode 100644 .github/workflows/RedHatUniversalBaseImage.yml diff --git a/.github/workflows/AlmaLinux.yml b/.github/workflows/AlmaLinux.yml deleted file mode 100644 index dd06dd2..0000000 --- a/.github/workflows/AlmaLinux.yml +++ /dev/null @@ -1,64 +0,0 @@ -# See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions - -# Workflow name -name: AlmaLinux 8.5 RPM build - -# Run on tag push -on: - push: - tags: - - '**' - -jobs: - - # - # Build on AlmaLinux 8.5 using go-toolset - # - AlmaLinux-RPM-build: - runs-on: ubuntu-latest - # See: https://hub.docker.com/_/almalinux - container: almalinux:8.5 - steps: - - # Use dnf to install development packages - - name: Install development packages - run: dnf --assumeyes group install "Development Tools" "RPM Development Tools" - - # Checkout git repository and submodules - # fetch-depth must be 0 to use git describe - # See: https://github.com/marketplace/actions/checkout - - name: Checkout - uses: actions/checkout@v2 - with: - submodules: recursive - fetch-depth: 0 - - # Use dnf to install build dependencies - - name: Install build dependencies - run: dnf --assumeyes builddep scripts/cc-metric-collector.spec - - - name: RPM build MetricCollector - id: rpmbuild - run: make RPM - - # See: https://github.com/actions/upload-artifact - - name: Save RPM as artifact - uses: actions/upload-artifact@v2 - with: - name: cc-metric-collector RPM for AlmaLinux 8.5 - path: ${{ steps.rpmbuild.outputs.RPM }} - - name: Save SRPM as artifact - uses: actions/upload-artifact@v2 - with: - name: cc-metric-collector SRPM for AlmaLinux 8.5 - path: ${{ steps.rpmbuild.outputs.SRPM }} - - # See: https://github.com/softprops/action-gh-release - - name: Release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - name: cc-metric-collector-${{github.ref_name}} - files: | - ${{ steps.rpmbuild.outputs.RPM }} - ${{ steps.rpmbuild.outputs.SRPM }} diff --git a/.github/workflows/RedHatUniversalBaseImage.yml b/.github/workflows/RedHatUniversalBaseImage.yml deleted file mode 100644 index 205a133..0000000 --- a/.github/workflows/RedHatUniversalBaseImage.yml +++ /dev/null @@ -1,64 +0,0 @@ -# See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions - -# Workflow name -name: Red Hat Universal Base Image 8 RPM build - -# Run on tag push -on: - push: - tags: - - '**' - -jobs: - - # - # Build on UBI 8 using go-toolset - # - UBI-8-RPM-build: - runs-on: ubuntu-latest - # See: https://catalog.redhat.com/software/containers/ubi8/ubi/5c359854d70cc534b3a3784e?container-tabs=gti - container: registry.access.redhat.com/ubi8/ubi:8.5-226.1645809065 - steps: - - # Use dnf to install development packages - - name: Install development packages - run: dnf --assumeyes --disableplugin=subscription-manager install rpm-build go-srpm-macros rpm-build-libs rpm-libs gcc make python38 git - - # Checkout git repository and submodules - # fetch-depth must be 0 to use git describe - # See: https://github.com/marketplace/actions/checkout - - name: Checkout - uses: actions/checkout@v2 - with: - submodules: recursive - fetch-depth: 0 - - # Use dnf to install build dependencies - - name: Install build dependencies - run: dnf --assumeyes --disableplugin=subscription-manager builddep scripts/cc-metric-collector.spec - - - name: RPM build MetricCollector - id: rpmbuild - run: make RPM - - # See: https://github.com/actions/upload-artifact - - name: Save RPM as artifact - uses: actions/upload-artifact@v2 - with: - name: cc-metric-collector RPM for UBI 8 - path: ${{ steps.rpmbuild.outputs.RPM }} - - name: Save SRPM as artifact - uses: actions/upload-artifact@v2 - with: - name: cc-metric-collector SRPM for UBI 8 - path: ${{ steps.rpmbuild.outputs.SRPM }} - - # See: https://github.com/softprops/action-gh-release - - name: Release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - name: cc-metric-collector-${{github.ref_name}} - files: | - ${{ steps.rpmbuild.outputs.RPM }} - ${{ steps.rpmbuild.outputs.SRPM }}