diff options
| author | Karan Jayachandra <mail@karanjayachandra.com> | 2025-07-14 20:04:59 +0200 |
|---|---|---|
| committer | Karan Jayachandra <mail@karanjayachandra.com> | 2025-07-14 20:14:55 +0200 |
| commit | 8a22aa775bae97ba68fe9c7b9f1248121861de6e (patch) | |
| tree | cbe2a079a794caae0aa33c99687e26ef51f0818c /.gitlab-ci.yml | |
| parent | 4aee68096c11ce1e3762fb8cffbde2a14dfa3cd0 (diff) | |
Update .gitlab-ci.yml file
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 16 |
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 |
