Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 11 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,42 +11,36 @@ references:
jobs:
build:
docker:
- image: circleci/node:12.10
- image: cimg/python:3.8-node
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- run:
name: Install Serverless CLI and dependencies
command: |
sudo npm i -g serverless
sudo apt-get install python-dev -qy
sudo curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python get-pip.py
sudo pip install -r requirements.txt -t .
sudo npm i -g serverless
pip install -r requirements.txt -t .

deploy-staging:
docker:
- image: circleci/node:12.10
- image: cimg/python:3.8-node
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- run:
name: Install Serverless CLI and dependencies
command: |
sudo npm i -g serverless
sudo apt-get install python-dev -qy
sudo curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python get-pip.py
sudo pip install -r requirements.txt -t .
sudo npm i -g serverless
pip install -r requirements.txt -t .
- run:
name: Deploy application to staging
command: sls deploy --stage staging --token ${STAGING_DEMO_ROOKOUT_TOKEN} --agenthost wss://staging.control.rookout.com

notify_slack_staging:
docker:
- image: python:3.8
- image: cimg/python:3.8-node
working_directory: ~/repo
environment:
ENV: staging
Expand All @@ -56,27 +50,24 @@ jobs:

deploy-production:
docker:
- image: circleci/node:12.10
- image: cimg/python:3.8-node
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- run:
name: Install Serverless CLI and dependencies
command: |
sudo npm i -g serverless
sudo apt-get install python-dev -qy
sudo curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python get-pip.py
sudo pip install -r requirements.txt -t .
sudo npm i -g serverless
pip install -r requirements.txt -t .

- run:
name: Deploy application to production
command: sls deploy --stage production --token ${DEMO_ROOKOUT_TOKEN} --agenthost wss://control.rookout.com

notify_slack_production:
docker:
- image: python:3.8
- image: cimg/python:3.8-node
working_directory: ~/repo
environment:
ENV: production
Expand Down