Created
March 13, 2019 18:26
-
-
Save xraymemory/961046c19b45738db95864362db146b6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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