-
Notifications
You must be signed in to change notification settings - Fork 3
/
codeship-steps.yml
58 lines (53 loc) · 1.71 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
- name: "Test"
service: test
command: test_reporter composer test -- --env=testing
- type: parallel
steps:
- name: "Deploy (develop)"
service: deploy
command: >
ANSIBLE_GITHUB_REPO=tenfour-infra
ANSIBLE_GITHUB_REPO_VERSION=master
ENV=dev
ush-ansible-playbook.sh -vv -i ./hosts -l dev
-e API_VERSION_SRC=/vols/src
api-deploy-version.yml
tag: develop
- name: "Deploy (staging)"
service: deploy
command: >
ANSIBLE_GITHUB_REPO=tenfour-infra
ANSIBLE_GITHUB_REPO_VERSION=master
ENV=dev
ush-ansible-playbook.sh -vv -i ./hosts -l staging
-e API_VERSION_SRC=/vols/src
api-deploy-version.yml
tag: staging
- name: "Deploy (master)"
service: deploy
command: >
ANSIBLE_GITHUB_REPO=tenfour-infra
ANSIBLE_GITHUB_REPO_VERSION=master
ENV=production
ush-ansible-playbook.sh -vv -i ./hosts -l production
-e API_VERSION_SRC=/vols/src
api-deploy-version.yml
tag: master
- type: serial
tag: ^(develop|staging|master)$
steps:
- name: "Docs"
service: aglio
command: aglio -i /vols/src/docs/api/_meta.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/tenfour/develop --acl public-read
tag: develop
- name: "Deploy Docs (staging)"
service: awscli
command: aws s3 sync /vols/src/docs/ s3://preview.ushahidi.com/tenfour/staging --acl public-read
tag: staging
- name: "Deploy Docs (master)"
service: awscli
command: aws s3 sync /vols/src/docs/ s3://preview.ushahidi.com/tenfour/master --acl public-read
tag: master