Skip to content

Instantly share code, notes, and snippets.

@xraymemory
Created March 13, 2019 18:26
Show Gist options
  • Select an option

  • Save xraymemory/961046c19b45738db95864362db146b6 to your computer and use it in GitHub Desktop.

Select an option

Save xraymemory/961046c19b45738db95864362db146b6 to your computer and use it in GitHub Desktop.
services:
-
name: postgres
image: postgres:9-alpine
ports:
- 5432
secrets:
- PG_PASS
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: '$${PG_PASS}'
POSTGRES_DB: test
pipeline:
test:
image: 'private.ecr/image'
environment:
LL_DATABASE_URL: '$${LL_DATABASE_URL}'
LL_DATABASE_URL_REPLICA: '$${LL_DATABASE_URL_REPLICA}'
LL_SECRET_KEY: '$${LL_SECRET_KEY}'
LL_SHARED_SECRET_KEY: '$${LL_SHARED_SECRET_KEY}'
secrets:
- LL_DATABASE_URL
- LL_DATABASE_URL_REPLICA
- LL_SECRET_KEY
- LL_SHARED_SECRET_KEY
commands:
- 'mkdir /drone/logs/'
- 'touch /drone/logs/api.log'
- 'sleep 30'
- 'python3 -m pytest --cov --create-db'
- 'python3 manage.py makemigrations --check --dry-run'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment