summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..f171d6d
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,19 @@
+image:
+ name: alpine@sha256:3c7497bf0c7af93428242d6176e8f7905f2201d8fc5861f45be7a346b5f23436
+
+.setup: &setup
+ - apk -U add curl
+
+staging:
+ extends: .setup
+ script:
+ - curl "https://$authuser:$authpass@dream.public.cat/api/deploy/stage"
+
+production:
+ extends: .setup
+ script:
+ - curl "https://$authuser:$authpass@dream.public.cat/api/deploy/production/$CI_COMMIT_REF_NAME"
+ only:
+ - tags
+ except:
+ - branches