forked from ushahidi/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodeship-steps.yml
57 lines (51 loc) · 1.44 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
- name: "Test"
type: parallel
steps:
- name: "Test PHP 7.2"
service: test/php-7.2
command: test_reporter composer run test --timeout 0
- name: "Test PHP 7.3"
service: test/php-7.3
command: test_reporter composer run test --timeout 0
- 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
- 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
- name: "Deployment director"
service: deploy
command: ush-deployment-director.sh
# Publish images to docker hub
- name: "Docker Hub upload"
type: parallel
steps:
- tag: master
name: "Upload latest tag"
service: dockerimg
type: push
image_name: ushahidi/platform
image_tag: latest
registry: https://index.docker.io/v1/
dockercfg_service: dockercfggen
- tag: '^v(\d+\.)+\d+'
name: "Upload release tag"
service: dockerimg
type: push
image_name: ushahidi/platform
image_tag: "{{.Branch}}"
registry: https://index.docker.io/v1/
dockercfg_service: dockercfggen