forked from ushahidi/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodeship-steps.yml
43 lines (38 loc) · 1.2 KB
/
codeship-steps.yml
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
- name: "Test"
service: test
command: composer test
- type: parallel
steps:
- name: "Bundle"
type: serial
tag: '^v[0-9]\.[0-9]+.[0-9]+(-[a-zA-Z0-9\.]+)?$'
steps:
- service: build
command: build
- service: release
command: release
- name: "Deploy"
service: deploy
tag: develop
command: >
ANSIBLE_GITHUB_REPO=platform-cloud-ansible
ANSIBLE_GITHUB_REPO_VERSION=master
ush-ansible-playbook.sh -vv -i hosts/rackspace_staging platform-api-update.yml
-e PLATFORM_CLIENT_VERSION="$CI_COMMIT_ID"
- name: "Deploy Production"
service: deploy
tag: production
command: >
ANSIBLE_GITHUB_REPO=platform-cloud-ansible
ANSIBLE_GITHUB_REPO_VERSION=master
ush-ansible-playbook.sh -i hosts/rackspace_prod platform-api-update.yml
-e PLATFORM_CLIENT_VERSION="$CI_COMMIT_ID"
- type: serial
tag: develop
steps:
- name: "Docs (develop)"
service: aglio
command: aglio -i /vols/src/docs/api/index.apib -o /vols/src/docs/api/index.html
- name: "Deploy Docs (develop)"
service: awscli
command: aws s3 sync /vols/src/docs/ s3://preview.ushahidi.com/platform/develop --acl public-read