From 7a475ce466dbad0f262d93f6dc42e05f24db57ba Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Thu, 20 Sep 2018 16:09:37 +0200 Subject: [PATCH] Add variable for public deploy key --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 15ecb5b..ff2aa95 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,10 +4,12 @@ variables: REFERENCE_SOLUTION: $CI_PROJECT_NAMESPACE/solutions/solutions JPLAG_PATH: /app/jplag.jar CI_REPO_HOST: $CI_REGISTRY + SSH_PUBLIC_KEY: deploy_key.pub stages: - test - doc + - projects - deadline - plagiates @@ -69,3 +71,15 @@ doc: only: - master + +create_projects: + ## create projects for all enrolled students + stage: projects + tags: + - abgabesystem + + script: + - abgabesystem projects -c $CI_PROJECT_NAMESPACE -d $SSH_PUBLIC_KEY + + only: + - master