summaryrefslogtreecommitdiff
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:04:59 +0200
commitcf162ca97c8274d608cf61d06f6f95e6c89ddb42 (patch)
treeea44a5b5d3880359a757b403bec2c5a6eea77c47
parent0396e1fbb46c7256095f05e37f2747baa3e20c73 (diff)
Update .gitlab-ci.yml file
-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