image: node:latest stages: - deploy deploy: type: deploy stage: deploy image: starefossen/ruby-node:alpine before_script: - npm install -g yarn - gem install dpl - apk add --no-cache git - apk add --no-cache curl - git clone https://github.com/datopian/frontend-v2.git /opt/frontend-v2 - mkdir -p /opt/frontend-v2/themes/@datopian/edp - cp -r . /opt/frontend-v2/themes/@datopian/edp - cp /opt/frontend-v2/themes/@datopian/edp/.edp.env /opt/frontend-v2/.env - cd /opt/frontend-v2/themes/@datopian/edp - yarn - cd /opt/frontend-v2 script: - dpl --provider=heroku --app=frontend-edp --api-key=$HEROKU_API_KEY only: - master