From 7f65f49b5036e4318b91dfc1ecd3ca21bc8ba74a Mon Sep 17 00:00:00 2001 From: hellekin Date: Fri, 5 Feb 2021 18:36:07 +0100 Subject: 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. --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .gitlab-ci.yml 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 -- cgit v1.2.3