I use the dpl to deploy my heroku with gitlab CI.
But it show invalid option "--api-key="
I don’t know where my configuration is wrong.
Here is my configruation
services:
- mongo:latest
cache:
paths:
- views/
- public/
- node_modules/
variables:
MONGODB_URI: 'mongodb://mongo/rukeith-blog'
before_script:
- apt-get update -yq
stages:
- lint
- test
- deploy
lint:
image: node:latest
script:
- npm install
- npm run lint
stage: lint
test:
image: node:latest
script:
- npm install
- npm test
stage: test
staging:
image: ruby:latest
stage: deploy
script:
- gem install dpl
- dpl --provider=heroku --app=blog-server-dev --api-key=$HEROKU_STAGING_API_KEY
only:
- master
production:
image: ruby:latest
stage: deploy
script:
- gem install dpl
- dpl --provider=heroku --app=blog-server-prod --api-key=$HEROKU_PRODUCTION_API_KEY
only:
- tags