summaryrefslogtreecommitdiffstats
path: root/.pipeline.yml
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-01-22 01:52:20 +0100
committerGeorg Pfuetzenreuter2023-01-22 01:52:20 +0100
commit874e3c190dcfd5a02789d1ecadc9444a6d8ebfc6 (patch)
treea1be6e1f0ea89a2264bbbfdfbd3061b8422ac1ba /.pipeline.yml
parented427955c3bf5561413664caa16e4fa14041e471 (diff)
downloadsalt-874e3c190dcfd5a02789d1ecadc9444a6d8ebfc6.tar.gz
salt-874e3c190dcfd5a02789d1ecadc9444a6d8ebfc6.tar.bz2
salt-874e3c190dcfd5a02789d1ecadc9444a6d8ebfc6.zip
Sync roles in pipeline
Call rolesyncer on new commits to production. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to '.pipeline.yml')
-rw-r--r--.pipeline.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.pipeline.yml b/.pipeline.yml
index 6bb0be7..9450491 100644
--- a/.pipeline.yml
+++ b/.pipeline.yml
@@ -16,3 +16,18 @@ pipeline:
- salt-call --local --retcode-passthrough state.show_highstate
- bin/prepare_mock.py
- 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