advanced pipeline
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-02-13 23:22:11 +01:00
parent 9c61a10d90
commit a2033e577b
3 changed files with 28 additions and 3 deletions

View File

@@ -4,6 +4,23 @@ type: docker
name: default
steps:
- name: run-service
image: python:3-slim
detach: true
environment:
DATABASE_URI: "postgresql://mealsapi:meals@database:5432/mealsdb"
commands:
- cd mealapi
- pip3 install -r requirements.txt
- python3 app.py
- name: tests
image: node
commands:
- npm install -g newman
- newman run LoadExampleData.postman_collection.json
- newman run MealHomeWork.postman_collection.json
- name: kaniko
image: banzaicloud/drone-kaniko
settings:
@@ -16,3 +33,11 @@ steps:
tags:
- latest
- ${DRONE_BUILD_NUMBER}
services:
- name: database
image: postgres:14
environment:
POSTGRES_USER: mealsapi
POSTGRES_PASSWORD: meals
POSTGRES_DB: mealsdb