diff options
author | hellekin <hellekin@cepheide.org> | 2021-02-05 18:36:07 +0100 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2021-02-05 18:36:07 +0100 |
commit | 7f65f49b5036e4318b91dfc1ecd3ca21bc8ba74a (patch) | |
tree | 12046b943d24b92984f0f3c8428daf2705f7ef30 | |
parent | cd3b3983a04c2b3fe5b054c9c81cdd1047ed89f2 (diff) | |
download | incommon-map-7f65f49b5036e4318b91dfc1ecd3ca21bc8ba74a.tar.gz |
Deploy from CI
This commit adds a script originally written by @dvn for DREAM.
The script hits a remote URL from the CI to trigger production
or staging deployment.
-rw-r--r-- | .gitlab-ci.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..a3f5ec3 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,14 @@ +image: + name: curlimages/curl@sha256:a3e534fced74aeea171c4b59082f265d66914d09a71062739e5c871ed108a46e + +staging: + script: + - curl -i -X POST "https://$authuser:$authpass@incommon.cc/api/deploy/stage" + +production: + script: + - curl -i -X POST "https://$authuser:$authpass@incommon.cc/api/deploy/production/$CI_COMMIT_REF_NAME" + only: + - tags + except: + - branches |