-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.circleci
39 lines (37 loc) · 1.03 KB
/
.circleci
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
version: 2.1
orbs:
node: circleci/[email protected]
jobs:
build-and-test:
executor:
name: node/default
steps:
- checkout
- node/with-cache:
steps:
- run: npm install
deploy:
executor:
name: node/default
steps:
- checkout
- node/with-cache:
steps:
- run: sudo apt-get update && sudo apt-get install python-pip python-dev build-essential
- run: sudo pip install awscli
- run: aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID --profile superhero-deploy
- run: aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY --profile superhero-deploy
- run: aws configure set region $AWS_DEFAULT_REGION --profile superhero-deploy
- run: npm install
- run: npm run deploy
workflows:
build-and-test:
jobs:
- build-and-test
deploy-master:
jobs:
- deploy:
filters:
branches:
only:
- master