mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
GHA: explicitly specify whether $DISTRO packages require subscription
to have all info at one place in the file.
This commit is contained in:
parent
53a389769c
commit
726497a0b5
8
.github/workflows/rpm.yml
vendored
8
.github/workflows/rpm.yml
vendored
@ -17,16 +17,22 @@ jobs:
|
||||
distro:
|
||||
- name: centos
|
||||
release: 7
|
||||
subscription: false
|
||||
- name: fedora
|
||||
release: 35
|
||||
subscription: false
|
||||
- name: fedora
|
||||
release: 34
|
||||
subscription: false
|
||||
- name: sles
|
||||
release: '15.3'
|
||||
subscription: true
|
||||
- name: sles
|
||||
release: '12.5'
|
||||
subscription: true
|
||||
- name: opensuse
|
||||
release: '15.3'
|
||||
subscription: false
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@ -43,7 +49,7 @@ jobs:
|
||||
env:
|
||||
GITLAB_REGISTRY_RO_TOKEN: '${{ secrets.GITLAB_REGISTRY_RO_TOKEN }}'
|
||||
run: |
|
||||
if [ '${{ matrix.distro.name }}' = sles ]; then
|
||||
if [ ${{ matrix.distro.subscription }} = true ]; then
|
||||
if [ "$(tr -d '\n' <<<"$GITLAB_REGISTRY_RO_TOKEN" |wc -c)" -eq 0 ]; then
|
||||
echo '::set-output name=CAN_BUILD::false'
|
||||
echo '::set-output name=NEED_LOGIN::false'
|
||||
|
Loading…
x
Reference in New Issue
Block a user