-
Notifications
You must be signed in to change notification settings - Fork 0
/
codeship-steps.yml
executable file
·48 lines (41 loc) · 1.54 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
- 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: "Deploy staging"
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-client-update-rsync.yml
-e PLATFORM_CLIENT_DEPLOY_SRC="/vols/last_build"
- name: "Deploy Production"
service: deploy
tag: production
command: >
ANSIBLE_GITHUB_REPO=platform-cloud-ansible
ANSIBLE_GITHUB_REPO_VERSION=master
ush-ansible-playbook.sh -vv -i hosts/rackspace_prod platform-client-update-rsync.yml
-e PLATFORM_CLIENT_DEPLOY_SRC="/vols/last_build"
- name: "Deploy other branches"
service: deploy
command: >
ANSIBLE_GITHUB_REPO=platform-cloud-ansible
ANSIBLE_GITHUB_REPO_VERSION=master
ush-ansible-playbook.sh -vv -i hosts/rackspace_pr platform-client-branches-deploy.yml
-e BRANCH_NAME="$CI_BRANCH"
-e DEPLOYMENTS_API_DOMAIN="api.ushahididev.com"
-e PLATFORM_CLIENT_DEPLOY_SRC="/vols/last_build"
-e PLATFORM_CLIENT_REPO="$CI_REPO_NAME"
-e PLATFORM_CLIENT_VERSION="$CI_COMMIT_ID"
-e COMMIT_STATUS_CONTEXT="continuous-deployment/${CI_NAME}"
-e DEPLOYMENT_LOG_URL="http://app.codeship.com/projects/${CI_PROJECT_ID}/builds/${CI_BUILD_ID}"