debian-mirror-gitlab/spec/support/gitlab_stubs/gitlab_ci.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

74 lines
1 KiB
YAML
Raw Normal View History

2022-06-21 17:19:12 +05:30
image: image:1.0
2015-09-25 12:07:36 +05:30
services:
- postgres
before_script:
2016-06-02 11:05:42 +05:30
- bundle install
2015-09-25 12:07:36 +05:30
- bundle exec rake db:create
variables:
2022-11-25 23:54:43 +05:30
KEY_VALUE_VAR:
value: 'value x'
description: 'value of KEY_VALUE_VAR'
2015-09-25 12:07:36 +05:30
DB_NAME: postgres
2022-10-11 01:57:18 +05:30
ENVIRONMENT_VAR:
2022-11-25 23:54:43 +05:30
value: ['env var value', 'env var value2']
2022-10-11 01:57:18 +05:30
description: 'env var description'
2015-09-25 12:07:36 +05:30
2022-03-02 08:16:31 +05:30
stages:
2015-09-25 12:07:36 +05:30
- test
- deploy
- notify
rspec:
script: "rake spec"
2016-06-02 11:05:42 +05:30
tags:
2015-09-25 12:07:36 +05:30
- ruby
- postgres
only:
- branches
spinach:
script: "rake spinach"
allow_failure: true
2016-06-02 11:05:42 +05:30
tags:
2015-09-25 12:07:36 +05:30
- ruby
- mysql
except:
- tags
staging:
2016-06-02 11:05:42 +05:30
variables:
KEY1: value1
KEY2: value2
2015-09-25 12:07:36 +05:30
script: "cap deploy stating"
2022-03-02 08:16:31 +05:30
stage: deploy
2016-06-02 11:05:42 +05:30
tags:
- ruby
- mysql
2015-09-25 12:07:36 +05:30
except:
- stable
production:
2016-06-02 11:05:42 +05:30
variables:
DB_NAME: mysql
2022-03-02 08:16:31 +05:30
stage: deploy
2016-06-02 11:05:42 +05:30
script:
2015-09-25 12:07:36 +05:30
- cap deploy production
- cap notify
2016-06-02 11:05:42 +05:30
tags:
- ruby
- mysql
2015-09-25 12:07:36 +05:30
only:
- master
- /^deploy-.*$/
dockerhub:
2022-03-02 08:16:31 +05:30
stage: notify
2015-09-25 12:07:36 +05:30
script: "curl http://dockerhub/URL"
tags:
- ruby
- postgres
only:
- branches