Commit 4367c509 authored by JJ Asghar's avatar JJ Asghar

Update test-and-deploy-ruby-application-to-heroku.md

Converted from type to "stage" due to depreciation.
Signed-off-by: default avatarJJ Asghar <jjasghar@gmail.com>
parent ac23f3f0
...@@ -10,6 +10,7 @@ This is what the `.gitlab-ci.yml` file looks like for this project: ...@@ -10,6 +10,7 @@ This is what the `.gitlab-ci.yml` file looks like for this project:
```yaml ```yaml
test: test:
stage: test
script: script:
- apt-get update -qy - apt-get update -qy
- apt-get install -y nodejs - apt-get install -y nodejs
...@@ -18,7 +19,7 @@ test: ...@@ -18,7 +19,7 @@ test:
- bundle exec rake test - bundle exec rake test
staging: staging:
type: deploy stage: deploy
script: script:
- gem install dpl - gem install dpl
- dpl --provider=heroku --app=gitlab-ci-ruby-test-staging --api-key=$HEROKU_STAGING_API_KEY - dpl --provider=heroku --app=gitlab-ci-ruby-test-staging --api-key=$HEROKU_STAGING_API_KEY
...@@ -26,7 +27,7 @@ staging: ...@@ -26,7 +27,7 @@ staging:
- master - master
production: production:
type: deploy stage: deploy
script: script:
- gem install dpl - gem install dpl
- dpl --provider=heroku --app=gitlab-ci-ruby-test-prod --api-key=$HEROKU_PRODUCTION_API_KEY - dpl --provider=heroku --app=gitlab-ci-ruby-test-prod --api-key=$HEROKU_PRODUCTION_API_KEY
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment