Created
January 18, 2021 15:26
-
-
Save jgontrum/206921b2f92a63e1812b92c43ee804d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: amaysim/serverless:1.71.1 | |
services: | |
- docker:19.03.5-dind | |
stages: | |
- Deploy | |
deploy_aws_lambda: | |
stage: Deploy | |
script: | |
- apk add --no-cache curl python3 py3-pip "docker=19.03.5-r1" | |
- 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 | |
variables: | |
DOCKER_HOST: tcp://docker:2375 | |
DOCKER_TLS_CERTDIR: "" | |
DOCKER_DRIVER: overlay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment