From 8c0b118302cd26b500bf9dfe3a14b7fd96f9b158 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Mon, 28 Feb 2022 13:24:17 +0100 Subject: [PATCH] GHA: correct subscription packages repo --- .github/workflows/rpm.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rpm.yml b/.github/workflows/rpm.yml index 77ca2da7e..b4c5aa7d6 100644 --- a/.github/workflows/rpm.yml +++ b/.github/workflows/rpm.yml @@ -74,12 +74,25 @@ jobs: docker login registry.icinga.com -u github-actions --password-stdin <<<"$GITLAB_RO_TOKEN" - name: rpm-icinga2 - if: "steps.vars.outputs.CAN_BUILD == 'true'" + if: "steps.vars.outputs.CAN_BUILD == 'true' && !matrix.distro.subscription" run: | set -exo pipefail git clone https://git.icinga.com/packaging/rpm-icinga2.git 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 <~/.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 if: "steps.vars.outputs.CAN_BUILD == 'true'" id: ccache