aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2021-10-16 15:12:32 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2021-10-16 15:12:32 +0200
commitf7f0ed4c2a195ee3b7fc0e8acb0283c817a0f927 (patch)
tree4bca74146865e9534e1fec95feccfa2980c84660 /.gitlab-ci.yml
parentd0753b3a9711f554331d72f90618605f7c714d55 (diff)
Add the CI deployment files
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..de5cd1a
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,32 @@
+image: docker/compose:alpine-1.29.2
+
+services:
+ - docker:dind
+
+before_script:
+ - apk add build-base
+ - touch .env
+
+stages:
+ - upload
+
+upload:
+ stage: upload
+ tags:
+ - docker
+ except:
+ refs:
+ - main
+ script:
+ - make upload
+
+upload_production:
+ stage: upload
+ tags:
+ - docker
+ only:
+ refs:
+ - main
+ environment: production
+ script:
+ - make environment=production upload