-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
36 lines (34 loc) · 969 Bytes
/
config.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
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1
orbs:
aws-cli: circleci/[email protected]
jobs:
deploy:
docker:
- image: cimg/python:3.8-node
steps:
- checkout
- aws-cli/setup
- run:
# manually installs Serverless CLI until this PR is merged to fix the Serverless Orb:
# https://github.com/CircleCI-Public/serverless-framework-orb/pull/12
name: Install Serverless CLI
command: |
# install
curl -o- -L https://slss.io/install | bash
echo 'export PATH=$HOME/.serverless/bin:$PATH' >> "$BASH_ENV"
source "$BASH_ENV"
- run:
name: Install npm packages
command: npm i
- run:
name: Deploy
command: sls deploy --verbose
workflows:
deploy:
jobs:
- deploy:
filters:
branches:
only: main