-
Notifications
You must be signed in to change notification settings - Fork 1
/
codeship-steps.yml
73 lines (61 loc) · 2.39 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
- type: parallel
tag: master
steps:
- name: "deploy .wellknown to production"
service: awscli
command: aws s3 sync /vols/src/.well-known/ s3://ushahidi-tenfour-production-client/.well-known/ --content-type application/json
- type: serial
steps:
- name: "build PWA client (production)"
service: builder
command: ENV=prod npm run ionic:build --prod --release
- name: "deploy PWA client (production)"
service: awscli
command: aws s3 sync /vols/src/tmp/pwa/ s3://ushahidi-tenfour-production-client-eu/
- type: parallel
tag: staging
steps:
- name: "deploy .wellknown to staging"
service: awscli
command: aws s3 sync /vols/src/.well-known/ s3://ushahidi-tenfour-staging-client-eu/.well-known/ --content-type application/json
- type: serial
steps:
- name: "build PWA client (staging)"
service: builder
command: ENV=staging npm run ionic:build --prod --release
- name: "deploy PWA client (staging)"
service: awscli
command: aws s3 sync /vols/src/tmp/pwa/ s3://ushahidi-tenfour-staging-client-eu/
- type: serial
tag: develop
steps:
- name: "deploy .wellknown to develop"
service: awscli
command: aws s3 sync /vols/src/.well-known/ s3://ushahidi-tenfour-dev-client-eu/.well-known/ --content-type application/json
- name: "build PWA client (dev)"
service: builder
command: ENV=dev npm run ionic:build --debug
- name: "deploy PWA client (dev)"
service: awscli
command: aws s3 sync /vols/src/tmp/pwa/ s3://ushahidi-tenfour-dev-client-eu/
- type: serial
steps:
- name: "Build PWA client (preview)"
service: builder
command: ENV=preview npm run ionic:build --debug
- name: "Deploy PWA client (preview)"
service: ansible
command: >
ANSIBLE_GITHUB_REPO=tenfour-infra
ANSIBLE_GITHUB_REPO_VERSION=master
GITHUB_STATUS_TOKEN=$GITHUB_TOKEN
ush-ansible-playbook.sh -vv -i hosts/hosts_ansible client-deploy.yml
-e BRANCH_NAME="$CI_BRANCH"
-e DEPLOYMENTS_DOMAIN="preview.tenfour.org"
-e CLIENT_DEPLOY_SRC="/vols/src/tmp/pwa/"
-e CLIENT_REPO="$CI_REPO_NAME"
-e 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}"
-e ENVIRONMENT=preview
-e tf_folder="tg/live-eu/preview"