diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..aa0e237a6eaecda0574348266829a9cefe08418d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +--- + +stages: + - run + + +default: + tags: + - default-env + + +# +# The `root-keys-job` triggers the setup-hosts pipeline whenever the +# `root_keys` file changes. This setup ensures that updates to the SSH +# keys in the `root_keys` file are consistently applied across all +# machines, allowing for effective management of SSH connection +# permissions. +# +root-keys-job: + stage : run + script: + - | + + curl --request POST \ + --form ref=main \ + --form variables[TAGS]='users,root' \ + "$SETUP_HOSTS_TRIGGER_URL" + + only: + changes: + - "root_keys" + +...