aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2021-02-05 18:36:07 +0100
committerhellekin <hellekin@cepheide.org>2021-02-05 18:36:07 +0100
commit7f65f49b5036e4318b91dfc1ecd3ca21bc8ba74a (patch)
tree12046b943d24b92984f0f3c8428daf2705f7ef30 /.gitlab-ci.yml
parentcd3b3983a04c2b3fe5b054c9c81cdd1047ed89f2 (diff)
downloadincommon-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.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml14
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