forked from Minds/front
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
40 lines (36 loc) · 1.21 KB
/
.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 test
#- tslint -c tslint.json 'app/**/*.ts'
build:
image: markharding/minds-front-base
commands:
- gulp build.sass --deploy-url=https://cdn-assets.minds.com/front/dist/en && gulp build.sass --deploy-url=https://cdn-assets.minds.com/front/dist/en ##weird build needs to be run twice for now
- sh build/base-locale.sh dist https://cdn-assets.minds.com/front/dist
- sh build/i18n-locales-all.sh dist https://cdn-assets.minds.com/front/dist
when:
event: [ push, tag, deployment ]
branch: [ master, test/codebuild, delta/launch ]
cp:
image: plugins/s3-sync:latest
bucket: minds-repo
secrets: [ aws_access_key_id, aws_secret_access_key ]
region: us-east-1
source: dist
target: front/dist
delete: false
when:
event: [ push, tag, deployment ]
branch: [ master, test/codebuild, delta/launch ]
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 ]