Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2019-05-15 23:13:48 +0300
committerEvan Read <eread@gitlab.com>2019-05-15 23:13:48 +0300
commitb924d6662fe3528c8dcee083e455336cff73be99 (patch)
tree81ba09906e1f6dacbd37e1d5615d057a92441dc2 /doc
parentd4292f304dd16f7751f884e3b706236954058a8f (diff)
parent419e7a10aa73ba86dd3b1915c9f6449955c80b0f (diff)
Merge branch 'patch-54' into 'master'
upgrate example ymal file, change type to stage. See merge request gitlab-org/gitlab-ce!27992
Diffstat (limited to 'doc')
-rw-r--r--doc/ci/examples/test-and-deploy-python-application-to-heroku.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/ci/examples/test-and-deploy-python-application-to-heroku.md b/doc/ci/examples/test-and-deploy-python-application-to-heroku.md
index 99a4316ab0d..47d20a4e1c1 100644
--- a/doc/ci/examples/test-and-deploy-python-application-to-heroku.md
+++ b/doc/ci/examples/test-and-deploy-python-application-to-heroku.md
@@ -9,7 +9,12 @@ You can checkout the [example source](https://gitlab.com/ayufan/python-getting-s
This is what the `.gitlab-ci.yml` file looks like for this project:
```yaml
+stages:
+ - test
+ - deploy
+
test:
+ stage: test
script:
# this configures Django application to use attached postgres database that is run on `postgres` host
- export DATABASE_URL=postgres://postgres:@postgres:5432/python-test-app
@@ -19,7 +24,7 @@ test:
- python manage.py test
staging:
- type: deploy
+ stage: deploy
script:
- apt-get update -qy
- apt-get install -y ruby-dev
@@ -29,7 +34,7 @@ staging:
- master
production:
- type: deploy
+ stage: deploy
script:
- apt-get update -qy
- apt-get install -y ruby-dev