Skip to content

Commit

Permalink
chore: update circleci config to use LinuxVM
Browse files Browse the repository at this point in the history
  • Loading branch information
limcheekin committed May 23, 2023
1 parent 4583eb0 commit 56682a4
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,24 @@ version: 2.1
workflows:
deploy-dev:
jobs:
- deploy-dev
- deploy-dev:
filters:
branches:
only:
- fastchat-t5-3b-ct2

jobs:
deploy-dev:
machine: true
resource_class: large
windows: true
steps:
- setup_remote_docker:
version: 20.10.8
docker_layer_caching: true
- run:
name: Test docker setup
command: |
set -x
docker version
docker run --rm hello-world
- checkout
- run:
name: Install NodeJS 18
command: |
choco install nodejs-lts -y
node --version
- run:
name: Install Serverless Framework
command: npm install -g serverless
- run:
name: Serverless AWS authentication
command: sls config credentials --provider aws --key %AWS_KEY% --secret %AWS_SECRET%
command: sls config credentials --provider aws --key $AWS_KEY --secret $AWS_SECRET
environment:
AWS_KEY: ${{ secrets.AWS_KEY }}
AWS_SECRET: ${{ secrets.AWS_SECRET }}
Expand All @@ -45,16 +35,16 @@ jobs:
command: |
pwd
cd $CIRCLE_BRANCH
sls info --verbose | grep endpoint | sed s/endpoint\:\ //g | awk '{print $1}' > endpoint
sls info --verbose | grep endpoint | sed 's/endpoint\:\ //g' | awk '{print $1}' > endpoint
- run:
name: Echo Endpoint URL
command: |
pwd
cd $CIRCLE_BRANCH
type endpoint
cat endpoint
- run:
name: Test Lambda functions
command: |
pwd
cd $CIRCLE_BRANCH
curl -X POST -H 'Content-Type: application/json' -d @prompt.json $(type endpoint)
curl -X POST -H 'Content-Type: application/json' -d @prompt.json $(cat endpoint)

0 comments on commit 56682a4

Please sign in to comment.