forked from ushahidi/platform-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodeship-steps.yml
40 lines (35 loc) · 923 Bytes
/
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
- name: "Test"
service: test
command: gulp test
- name: "Build client"
service: build
command: build
- type: parallel
steps:
- name: "Release bundle"
service: release
command: release
tag: '^v[0-9]\.[0-9]+.[0-9]+([\-a-zA-Z0-9\.]+)?$'
- name: "Deployment director"
service: deploy
command: CI_NAME=codeship 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-client
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-client
image_tag: "{{.Branch}}"
registry: https://index.docker.io/v1/
dockercfg_service: dockercfggen