-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (68 loc) · 3.78 KB
/
.travis.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
74
os:
- linux
language: go
go:
- 1.9.4
script:
- go build -v
- if [[ "$TRAVIS_BRANCH" == "production" ]]; then
echo 'command=/home/ec2-user/sesha3/sesha3 serve --v=2 --logtostderr=true --use-proxy=true' > cmdline;
echo "{\"host\":\"${RMQ_HOST}\",\"port\":\"${RMQ_PORT}\",\"user\":\"${RMQ_USER}\",\"pass\":\"${RMQ_PASS}\"}" > rmq.conf;
else
echo 'command=/home/ec2-user/sesha3/sesha3 serve --v=2 --logtostderr=true --rundev=true --use-proxy=true' > cmdline;
echo "{\"host\":\"${RMQ_HOST}\",\"port\":\"${RMQ_PORT}\",\"user\":\"${RMQ_USER}\",\"pass\":\"${RMQ_PASS}\"}" > rmq.conf;
fi
before_deploy:
- tar cvzf app.tar.gz sesha3 rmq.conf cmdline appspec.yml scripts/ tools/
- mkdir -p dpl_cd_upload
- cp app.tar.gz dpl_cd_upload/
deploy:
# development
- provider: s3
access_key_id: AKIAJCZ3WU4AKS6RPDRQ
secret_access_key: &1
secure: iLtp/o0lBwHSwpbFXHB7CAmlKzFH5RvO93h7csTlbx2qy+1wDTXyDgbwoZ3igP23S3TZNNVA9gbv4oPZT+7eCK5ofRjZc6j78oZ38tUA+w41oIb2UaSw7/n0IXKQBYOz/5GlYfqweKG9xeNlhYtnsKjLq/cJE/vD35Mz1ffjxL7cymx4shx0apBYZsUWDMMhIyNhdj4xR4r6jjV0b3Ta6Na7K2k3CgtITsoqYxN3jPHPd0oJz28ePkKi0yDlHXaUge6aDzgM7lQf1L2tfFkzKrxuKSz66vyFrIHXNvsfno6Kr2AqqXaoYbykv9osnsRk30VdXT/zQj3UZMEqqnXASTkqcB34PBWJzmJKmcYIqophe3ZVnwW5dPRTRS4mwqQy+oYRj9hy5tjCf8/FLorAXZKHKyc8fElvig/FwQYU9JNqQgt3RVH4XxkDal1vmjoZ6AFUPNbYodPujkqWOSvtI7QmET95tFWxNyv1xJOvi8SDlhWnGKxp3LRTb7TeCQzJHFObl/Lr/FHjwQ4TKE63FhkRXVQKNVyvbWAV+rB5K9BSaA6wq7iEbrHpOF3mg6upQMSbKOe1xWHZAcUJzSuA5Ex9igOy4R3OnTHNlwlyTPDaUL2J8iaXpOnv1VidkRHaeZYHoDkWfuWy5dMAqTQunxCAM4p4XrtfiUKGP5uxuzA=
local_dir: dpl_cd_upload
skip_cleanup: true
on: &2
repo: mobingilabs/sesha3
branch: master
bucket: sesha3
upload_dir: latest
region: ap-northeast-1
- provider: codedeploy
access_key_id: AKIAJCZ3WU4AKS6RPDRQ
secret_access_key: *1
bucket: sesha3
key: latest/app.tar.gz
bundle_type: tgz
application: sesha3
deployment_group: sesha3dg
region: ap-northeast-1
on: *2
# production
- provider: s3
access_key_id: AKIAIKOA4NUGKY5TWT5A
secret_access_key: &3
secure: lOJgrCDewQPejS7/39e7wPyHGCDntya3DxXuOai6Op9fQQzK9g82++YjKpkqqR4zD++eH/hDoiKUOdEeo+H9Cai2paiihJ5cf4kkjtnYTvIiS9fVHP7TuzLy1o544W7bCtWci3a3ApRJq4dmv56yQwrWhXqhQZBPrlYN2/yyVY0UHB9MDvoMcguYjtxsTrvw1hwSlfC8AG1CyRj4kiquE+oJWgQu2a4H+8ekm8N6dBX2i4twDUtuSBpc/ewOnro9R71jbxz4JeMcyjbOSClhxP2kvdZB+3WtW+91BkkE4xFDBhjzRap0MGnTiPbelVrmWjUrmFvBBJN8119PjPwgcl4k6L4DXwo0Q/jVl2KNfMDsWg6GweL0HJHPInMgOWNgROlJfvXy+ujGfmhUWX0Jbfu//LMtYJV351AcHsCWkh6SEiXedDJAPml25WdTCIzhEUCeep9QMKUE3DgvutCr7HYSSXtSVbqkG6DHb3Ng1eqqjfMfLB1pMVrzYeJQ22J494ow22jmDLilhZV+ebiRyK1AeE9c+KBEfuE6wdyymiTiAu7sbibJhtGpl6wxHjsUzBvNnS3Ql5N6vFX88yia20vQDbTwyvfIGC5urjcE8gN0xCjRW80JpemP+RS2MHEh6qDoVnOlcWLfz+QVGzVBZdpSFg2k9rGqXT4oHQCoGyE=
local_dir: dpl_cd_upload
skip_cleanup: true
on: &4
repo: mobingilabs/sesha3
branch: production
bucket: sesha3-prod
upload_dir: latest
region: ap-northeast-1
- provider: codedeploy
access_key_id: AKIAIKOA4NUGKY5TWT5A
secret_access_key: *3
bucket: sesha3-prod
key: latest/app.tar.gz
bundle_type: tgz
application: sesha3
deployment_group: sesha3dg
region: ap-northeast-1
on: *4
notifications:
slack:
secure: mTqgOEARoIec1iErPkuRwC6zL6H0P3zkGTTeCZv6ZdPqE5GIupqEp7ACEbPloFyvxGKKiM8eS0JWf1GlmMymozAb9tF3gd5NetS4evbXmuk+HjNNKdwfhsB2c/y5n22+Eg5TTJTpF1AQxLnHqgLpL7pVHD7YUzZy2bJr99G5WWPcZ1MO+LCq1oQBK1jk2o5SFjoPVsUWlNqCfUiE7C2dTcC5PKnI65KmVDRPhk6gcuJvr70Uwbcx1PCB2lS/jLfrdwAtvYs/2+kFQJgd0hmmPVo+EL0WImhvsNcNPArOQeYByncw5lAwG2HLQ5uT1eILrR1i6W0cCKIAxmN/2aMPMUh5p8ypv+GQ/GA18jav6SxOK/pAbHPdONx2gsOkoVRSA2wFVVNuyKH9foO9uZTos3ErdpOtX0TDsetUUhnsiBzp0dnoh3QjbAwaeVJRrv76HGaXGcoLc+QqJrfASaunelMoA7GFf8A0tVa72eVDOSIiINtoxAhWDtES+W0koOMde5EbZL88y9Ji4ptZJJUj3FEgTn1b+LVkcPtlLwhMeq3UPPQrOoycrb6mRCISbRN3ViWUjKBR2Y+j7ROjGg/d4/ARSBky/jGftHXr0OOyRyw/QuAVP5M/UJJgeIKUp8wg4PeOc+CNwM82Jp0ZJzfzQmJdtwq+5VnN1vOHx9ZkWMc=