Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pipenv, zappa and Gitlab CI
image: python:latest
stages:
- deploy
variables:
WORKON_HOME: .pipenv/venvs
PIP_CACHE_DIR: .pipenv/pipcache
cache:
key: pipenv
paths:
- .pipenv
deploy:
stage: deploy
before_script:
- pip install --upgrade pipenv
- pipenv sync
- /bin/bash -c "source $(pipenv --venv)/bin/activate"
- export VIRTUAL_ENV=$(pipenv --venv)
script:
- /bin/bash -c "$(pipenv --venv)/bin/zappa update dev"
- /bin/bash -c "$(pipenv --venv)/bin/zappa manage dev migrate"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment