This commit is contained in:
parent
b2934a43c0
commit
1c3dcbdb57
25
.drone.yml
25
.drone.yml
@ -4,23 +4,6 @@ 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 --env-var "HOST=run-service:8080" LoadExampleData.postman_collection.json
|
||||
- newman run --env-var "HOST=run-service:8080" MealHomeWork.postman_collection.json
|
||||
|
||||
- name: kaniko
|
||||
image: banzaicloud/drone-kaniko
|
||||
settings:
|
||||
@ -33,11 +16,3 @@ steps:
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_BUILD_NUMBER}
|
||||
|
||||
services:
|
||||
- name: database
|
||||
image: postgres:14
|
||||
environment:
|
||||
POSTGRES_USER: mealsapi
|
||||
POSTGRES_PASSWORD: meals
|
||||
POSTGRES_DB: mealsdb
|
||||
|
Loading…
Reference in New Issue
Block a user