Skip to content

Instantly share code, notes, and snippets.

@xb4dc0d3
Last active March 9, 2020 14:44
Show Gist options
  • Save xb4dc0d3/483171c4fd4de8a5bfaf2832d17b44c4 to your computer and use it in GitHub Desktop.
Save xb4dc0d3/483171c4fd4de8a5bfaf2832d17b44c4 to your computer and use it in GitHub Desktop.
Base images, stages. and cache
image: python:latest
stages:
- test
- flake8
- build
- sonarqube
- deploy
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
DOCKER_DRIVER: overlay2
cache:
paths:
- .cache/pip
- venv/
before_script:
- python -V
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install -r requirements.txt...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment