summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2025-07-14 20:04:59 +0200
committerKaran Jayachandra <mail@karanjayachandra.com>2025-07-14 20:14:55 +0200
commit8a22aa775bae97ba68fe9c7b9f1248121861de6e (patch)
treecbe2a079a794caae0aa33c99687e26ef51f0818c /.gitlab-ci.yml
parent4aee68096c11ce1e3762fb8cffbde2a14dfa3cd0 (diff)
Update .gitlab-ci.yml file
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..d9bcc0f
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,16 @@
+image: python:latest
+
+before_script:
+ - python --version ; pip --version
+ - pip install virtualenv
+ - virtualenv venv
+ - source venv/bin/activate
+
+deploy:
+ stage: deploy
+ environment: production
+ script:
+ - gem install dpl
+ - dpl --provider=heroku --app=$HEROKU_APP_NAME --api-key=$HEROKU_PRODUCTION_KEY
+ rules:
+ - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH