meal_homework/.drone.yml
Torma Kristóf 7ca84e79d4
Some checks failed
continuous-integration/drone/push Build is failing
fix pipeline
2022-02-13 23:24:14 +01:00

44 lines
900 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: run-service
image: python:3-slim
detach: true
environment:
DATABASE_URI: "postgresql://mealsapi:meals@database:5432/mealsdb"
commands:
- pip3 install -r requirements.txt
- cd mealapi
- 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:
registry: registry.kmlabz.com
repo: tormakris/${DRONE_REPO_NAME}
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
tags:
- latest
- ${DRONE_BUILD_NUMBER}
services:
- name: database
image: postgres:14
environment:
POSTGRES_USER: mealsapi
POSTGRES_PASSWORD: meals
POSTGRES_DB: mealsdb