forked from Minds/front
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
40 lines (36 loc) · 994 Bytes
/
.drone.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
pipeline:
test:
image: markharding/minds-front-base
commands:
- npm install && npm install -g typescript tslint gulp
- npm test
#- tslint -c tslint.json 'app/**/*.ts'
build:
image: markharding/minds-front-base
commands:
- npm install -g gulp
- gulp build --aot --useCdn
- gulp build --aot --shims
when:
event: [ push, tag, deployment ]
branch: [ master, test/codebuild ]
cp:
image: plugins/s3-sync:latest
bucket: minds-repo
secrets: [ aws_access_key_id, aws_secret_access_key ]
region: us-east-1
source: public
target: front/public
delete: false
when:
event: [ push, tag, deployment ]
branch: [ master, test/codebuild ]
deploy:
image: minds/ecs-update:latest
cluster: minds
region: us-east-1
service: app
secrets: [ aws_access_key_id, aws_secret_access_key ]
when:
event: [ push, tag, deployment ]
branch: [ master, test/codebuild ]