mirror of https://github.com/Icinga/icinga2.git
GHA: new subscription packages repo access token
with more permissions and URL-friendlier login name.
This commit is contained in:
parent
9013ebf0fb
commit
f6b194e9ae
|
@ -47,10 +47,10 @@ jobs:
|
||||||
- name: Vars
|
- name: Vars
|
||||||
id: vars
|
id: vars
|
||||||
env:
|
env:
|
||||||
GITLAB_REGISTRY_RO_TOKEN: '${{ secrets.GITLAB_REGISTRY_RO_TOKEN }}'
|
GITLAB_RO_TOKEN: '${{ secrets.GITLAB_RO_TOKEN }}'
|
||||||
run: |
|
run: |
|
||||||
if [ ${{ matrix.distro.subscription }} = true ]; then
|
if [ ${{ matrix.distro.subscription }} = true ]; then
|
||||||
if [ "$(tr -d '\n' <<<"$GITLAB_REGISTRY_RO_TOKEN" |wc -c)" -eq 0 ]; then
|
if [ "$(tr -d '\n' <<<"$GITLAB_RO_TOKEN" |wc -c)" -eq 0 ]; then
|
||||||
echo '::set-output name=CAN_BUILD::false'
|
echo '::set-output name=CAN_BUILD::false'
|
||||||
echo '::set-output name=NEED_LOGIN::false'
|
echo '::set-output name=NEED_LOGIN::false'
|
||||||
else
|
else
|
||||||
|
@ -69,9 +69,9 @@ jobs:
|
||||||
- name: Login
|
- name: Login
|
||||||
if: "steps.vars.outputs.NEED_LOGIN == 'true'"
|
if: "steps.vars.outputs.NEED_LOGIN == 'true'"
|
||||||
env:
|
env:
|
||||||
GITLAB_REGISTRY_RO_TOKEN: '${{ secrets.GITLAB_REGISTRY_RO_TOKEN }}'
|
GITLAB_RO_TOKEN: '${{ secrets.GITLAB_RO_TOKEN }}'
|
||||||
run: |
|
run: |
|
||||||
docker login registry.icinga.com -u build-docker/sles --password-stdin <<<"$GITLAB_REGISTRY_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'"
|
||||||
|
|
Loading…
Reference in New Issue