Skip to content

Instantly share code, notes, and snippets.

@jgontrum
Created January 18, 2021 15:24
Show Gist options
  • Save jgontrum/5788003e6ac781975e0e1a7c38e1fe28 to your computer and use it in GitHub Desktop.
Save jgontrum/5788003e6ac781975e0e1a7c38e1fe28 to your computer and use it in GitHub Desktop.
image: amaysim/serverless:1.71.1
stages:
- Deploy
deploy_aws_lambda:
stage: Deploy
script:
- apk add --no-cache curl python3 py3-pip
- curl -Ls https://cli.doppler.com/install.sh | sh
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
- source $HOME/.poetry/env
- doppler run --command "serverless config credentials --provider aws --key \$AWS_ACCESS_KEY_ID --secret \$AWS_SECRET_ACCESS_KEY"
- doppler run -- sls plugin install -n serverless-python-requirements
- doppler run -- sls deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment