Sync roles in pipeline
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful

Call rolesyncer on new commits to production.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-01-22 01:52:20 +01:00
parent ed427955c3
commit 874e3c190d
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -16,3 +16,18 @@ pipeline:
- salt-call --local --retcode-passthrough state.show_highstate - salt-call --local --retcode-passthrough state.show_highstate
- bin/prepare_mock.py - bin/prepare_mock.py
- salt-call --local --retcode-passthrough state.apply mock=True - salt-call --local --retcode-passthrough state.apply mock=True
sync_roles:
image: registry.opensuse.org/home/crameleon/libertacasa/containers/containerfile/libertacasa/rolesyncer:latest
secrets:
- source: rolesyncer_nbh
target: NB_HOST
- source: rolesyncer_nbt
target: NB_TOKEN
when:
branch: [production]
event: [push]
instance: woodpecker-orpheus.intranet.squirrelcube.com
commands:
#- rolesyncer
- bin/rolesyncer.py