Skip to content
Snippets Groups Projects
.gitlab-ci.yml 537 B
image: node:latest

before_script:
    - apt-get update -qy
    - apt-get install -y ruby-dev
    - gem install dpl

stages:
    - production

production:
    type: deploy
    stage: production
    image: ruby:latest
    script:
        - cd frontend
        - dpl --provider=heroku --app=$HEROKU_APP_FRONTEND --api-key=$HEROKU_API_KEY
        - cd ../backend
        - dpl --buildpack="https://github.com/chibat/heroku-buildpack-deno.git" --provider=heroku --app=$HEROKU_APP_BACKEND --api-key=$HEROKU_API_KEY
    only:
        - master