This repository was archived by the owner on Jan 23, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcircle.yml
More file actions
43 lines (40 loc) · 1.51 KB
/
circle.yml
File metadata and controls
43 lines (40 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
machine:
ruby:
version: 2.3.5
dependencies:
pre:
- curl -v -L -f -o cf-cli_amd64.deb 'https://cli.run.pivotal.io/stable?release=debian64&source=github'
- sudo dpkg -i cf-cli_amd64.deb
- cf install-plugin https://github.com/govau/autopilot/releases/download/0.0.5-venapp/autopilot-linux -f
- cf -v
- cp .env.sample .env
test:
override:
- RAILS_ENV=test bundle exec rspec -r rspec_junit_formatter --format RspecJunitFormatter -o $CIRCLE_TEST_REPORTS/rspec/junit.xml
deployment:
cloud-migration:
staging:
branch: develop
owner: AusDTO
commands:
- cf api https://api.system.y.cld.gov.au
- cf auth $CF_USER_STAGING $CF_PASSWORD_STAGING
- cf target -o dta -s govau
- curl https://api.rollbar.com/api/1/deploy/ -F access_token=$ROLLBAR_ACCESS_TOKEN
-F environment=production -F revision=`git log -n 1 --pretty=format:"%H"`
-F local_username=`whoami`
- bundle exec rake assets:precompile
- cf zero-downtime-push gov-au-beta -f manifest.yml
production:
tag: /v.*/
owner: AusDTO
commands:
- cf api https://api.system.b.cld.gov.au
- cf auth $CF_USER_PROD $CF_PASSWORD_PROD
- cf target -o dta -s govau
- curl https://api.rollbar.com/api/1/deploy/ -F access_token=$ROLLBAR_PROD_ACCESS_TOKEN
-F environment=production -F revision=`git log -n 1 --pretty=format:"%H"`
-F local_username=`whoami`
- bundle exec rake assets:precompile
- cf zero-downtime-push gov-au-beta -f manifest.yml