mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 06:34:42 +02:00
GHA: correct subscription packages repo
This commit is contained in:
parent
add9c823a1
commit
8cdc53ffd4
15
.github/workflows/rpm.yml
vendored
15
.github/workflows/rpm.yml
vendored
@ -74,12 +74,25 @@ jobs:
|
|||||||
docker login registry.icinga.com -u github-actions --password-stdin <<<"$GITLAB_RO_TOKEN"
|
docker login registry.icinga.com -u github-actions --password-stdin <<<"$GITLAB_RO_TOKEN"
|
||||||
|
|
||||||
- name: rpm-icinga2
|
- name: rpm-icinga2
|
||||||
if: "steps.vars.outputs.CAN_BUILD == 'true'"
|
if: "steps.vars.outputs.CAN_BUILD == 'true' && !matrix.distro.subscription"
|
||||||
run: |
|
run: |
|
||||||
set -exo pipefail
|
set -exo pipefail
|
||||||
git clone https://git.icinga.com/packaging/rpm-icinga2.git
|
git clone https://git.icinga.com/packaging/rpm-icinga2.git
|
||||||
chmod o+w rpm-icinga2
|
chmod o+w rpm-icinga2
|
||||||
|
|
||||||
|
- name: subscription-rpm-icinga2
|
||||||
|
if: "steps.vars.outputs.CAN_BUILD == 'true' && matrix.distro.subscription"
|
||||||
|
env:
|
||||||
|
GITLAB_RO_TOKEN: '${{ secrets.GITLAB_RO_TOKEN }}'
|
||||||
|
run: |
|
||||||
|
set -exo pipefail
|
||||||
|
git config --global credential.helper store
|
||||||
|
cat <<EOF >~/.git-credentials
|
||||||
|
https://github-actions:${GITLAB_RO_TOKEN}@git.icinga.com
|
||||||
|
EOF
|
||||||
|
git clone https://git.icinga.com/packaging/subscription-rpm-icinga2.git rpm-icinga2
|
||||||
|
chmod o+w rpm-icinga2
|
||||||
|
|
||||||
- name: Restore/backup ccache
|
- name: Restore/backup ccache
|
||||||
if: "steps.vars.outputs.CAN_BUILD == 'true'"
|
if: "steps.vars.outputs.CAN_BUILD == 'true'"
|
||||||
id: ccache
|
id: ccache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user