This commit is contained in:
parent
9c61a10d90
commit
a2033e577b
25
.drone.yml
25
.drone.yml
@ -4,6 +4,23 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
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
|
- name: kaniko
|
||||||
image: banzaicloud/drone-kaniko
|
image: banzaicloud/drone-kaniko
|
||||||
settings:
|
settings:
|
||||||
@ -16,3 +33,11 @@ steps:
|
|||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${DRONE_BUILD_NUMBER}
|
- ${DRONE_BUILD_NUMBER}
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: database
|
||||||
|
image: postgres:14
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: mealsapi
|
||||||
|
POSTGRES_PASSWORD: meals
|
||||||
|
POSTGRES_DB: mealsdb
|
||||||
|
@ -21,4 +21,4 @@ version: 0.1.0
|
|||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: "1.16.0"
|
appVersion: "1.0.0"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: nginx
|
repository: tormachris/mealsapi
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: ""
|
tag: ""
|
||||||
@ -47,7 +47,7 @@ ingress:
|
|||||||
# kubernetes.io/ingress.class: nginx
|
# kubernetes.io/ingress.class: nginx
|
||||||
# kubernetes.io/tls-acme: "true"
|
# kubernetes.io/tls-acme: "true"
|
||||||
hosts:
|
hosts:
|
||||||
- host: chart-example.local
|
- host: mealsapi.local
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
|
Loading…
Reference in New Issue
Block a user