@cryptotaxi247 / netdata-1 / commits / 9fd4f5dd3

Remove conditional jobs from repoconfig packages workflow.

We don’t actually need to run individual jobs conditionally, and they’re complicating things.

Austin S. Hemmelgarn committed Aug 11, 2021 at 11:17 UTC 9fd4f5dd3c9ce9b3c5248a8d64bb043c168a82a1
1 file changed +12 -20
.github/workflows/repoconfig-packages.yml
+12 -20
@@ -3,11 +3,6 @@
3 name: Repository Packages
4 on:
5 workflow_dispatch:
6 - inputs:
7 - distros:
8 - description: Distros to Build
9 - default: all
10 - required: true
6 env:
7 DO_NOT_TRACK: 1
8 jobs:
@@ -21,18 +16,18 @@ jobs:
16 # This needs to be kept in sync with the matrix in packaging.yml, but should only include the AMD64 lines.
17 matrix:
18 include:
24 - - {distro: debian, version: "9", key: debian-9, pkgclouddistro: debian/stretch, format: deb, base_image: debian, platform: linux/amd64, arch: amd64}
25 - - {distro: debian, version: "10", key: debian-10, pkgclouddistro: debian/buster, format: deb, base_image: debian, platform: linux/amd64, arch: amd64}
26 - - {distro: ubuntu, version: "16.04", key: ubuntu-16.04, pkgclouddistro: ubuntu/xenial, format: deb, base_image: ubuntu, platform: linux/amd64, arch: amd64}
27 - - {distro: ubuntu, version: "18.04", key: ubuntu-18.04, pkgclouddistro: ubuntu/bionic, format: deb, base_image: ubuntu, platform: linux/amd64, arch: amd64}
28 - - {distro: ubuntu, version: "20.04", key: ubuntu-20.04, pkgclouddistro: ubuntu/focal, format: deb, base_image: ubuntu, platform: linux/amd64, arch: amd64}
29 - - {distro: ubuntu, version: "21.04", key: ubuntu-21.04, pkgclouddistro: ubuntu/hirsute, format: deb, base_image: ubuntu, platform: linux/amd64, arch: amd64}
30 - - {distro: centos, version: "7", key: centos-7, pkgclouddistro: el/7, format: rpm, base_image: centos, platform: linux/amd64, arch: amd64}
31 - - {distro: centos, version: "8", key: centos-8, pkgclouddistro: el/8, format: rpm, base_image: centos, platform: linux/amd64, arch: amd64}
32 - - {distro: fedora, version: "33", key: fedora-33, pkgclouddistro: fedora/33, format: rpm, base_image: fedora, platform: linux/amd64, arch: amd64}
33 - - {distro: fedora, version: "34", key: fedora-34, pkgclouddistro: fedora/34, format: rpm, base_image: fedora, platform: linux/amd64, arch: amd64}
34 - - {distro: opensuse, version: "15.2", key: opensuse-15.2, pkgclouddistro: opensuse/15.2, format: rpm, base_image: opensuse/leap, platform: linux/amd64, arch: amd64}
35 - - {distro: opensuse, version: "15.3", key: opensuse-15.3, pkgclouddistro: opensuse/15.2, format: rpm, base_image: opensuse/leap, platform: linux/amd64, arch: amd64}
19 + - {distro: debian, version: "9", pkgclouddistro: debian/stretch, format: deb, base_image: debian, platform: linux/amd64, arch: amd64}
20 + - {distro: debian, version: "10", pkgclouddistro: debian/buster, format: deb, base_image: debian, platform: linux/amd64, arch: amd64}
21 + - {distro: ubuntu, version: "16.04", pkgclouddistro: ubuntu/xenial, format: deb, base_image: ubuntu, platform: linux/amd64, arch: amd64}
22 + - {distro: ubuntu, version: "18.04", pkgclouddistro: ubuntu/bionic, format: deb, base_image: ubuntu, platform: linux/amd64, arch: amd64}
23 + - {distro: ubuntu, version: "20.04", pkgclouddistro: ubuntu/focal, format: deb, base_image: ubuntu, platform: linux/amd64, arch: amd64}
24 + - {distro: ubuntu, version: "21.04", pkgclouddistro: ubuntu/hirsute, format: deb, base_image: ubuntu, platform: linux/amd64, arch: amd64}
25 + - {distro: centos, version: "7", pkgclouddistro: el/7, format: rpm, base_image: centos, platform: linux/amd64, arch: amd64}
26 + - {distro: centos, version: "8", pkgclouddistro: el/8, format: rpm, base_image: centos, platform: linux/amd64, arch: amd64}
27 + - {distro: fedora, version: "33", pkgclouddistro: fedora/33, format: rpm, base_image: fedora, platform: linux/amd64, arch: amd64}
28 + - {distro: fedora, version: "34", pkgclouddistro: fedora/34, format: rpm, base_image: fedora, platform: linux/amd64, arch: amd64}
29 + - {distro: opensuse, version: "15.2", pkgclouddistro: opensuse/15.2, format: rpm, base_image: opensuse/leap, platform: linux/amd64, arch: amd64}
30 + - {distro: opensuse, version: "15.3", pkgclouddistro: opensuse/15.2, format: rpm, base_image: opensuse/leap, platform: linux/amd64, arch: amd64}
31 # We intentiaonally disable the fail-fast behavior so that a
32 # build failure for one version doesn't prevent us from publishing
33 # successfully built and tested packages for another version.
@@ -40,16 +35,13 @@ jobs:
35 max-parallel: 8
36 steps:
37 - name: Checkout
43 - if: contains(github.event.input.distros, matrix.key) || github.event.input.distros == 'all'
38 uses: actions/checkout@v2
39 # Unlike normally, we do not need a deep clone or submodules for this.
40 - name: Build Packages
47 - if: contains(github.event.input.distros, matrix.key) || github.event.input.distros == 'all'
41 shell: bash
42 run: |
43 docker run -e DO_NOT_TRACK=1 --platform ${{ matrix.platform }} -v $PWD:/netdata ${{ matrix.base_image }}:${{ matrix.version }} /netdata/packaging/repoconfig/build-${{ matrix.format }}.sh
44 - name: Upload Packages
52 - if: contains(github.event.input.distros, matrix.key) || github.event.input.distros == 'all'
45 shell: bash
46 env:
47 PKG_CLOUD_TOKEN: ${{ secrets.PACKAGE_CLOUD_API_KEY }}