Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jbellavance34 authored May 12, 2024
1 parent 9fe718c commit c5fb127
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
stages:
- test
- prod

test:
image: python:3.8.1-alpine
stage: test
script:
- pip install pylint
- pip install --no-cache-dir -r requirements.txt
- pylint --rcfile=.pylintrc pybus.py pybus_test.py
except:
- master

production:
image: python:3.8.1-alpine
stage: prod
script:
- echo "Installing sls framework packages"
- apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.7/main/ nodejs=8.9.3-r1
- npm install -g serverless
- npm install serverless-python-requirements
- npm install serverless-wsgi
- npm install serverless-domain-manager
- echo "Deploying prod on -AWS-"
- export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
- serverless deploy
only:
- master

0 comments on commit c5fb127

Please sign in to comment.