Add CI integration with drone
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing

This commit is contained in:
cami 2021-09-01 01:20:13 +02:00
parent 75f2365024
commit 1a406e74ba

39
.drone.yml Normal file
View file

@ -0,0 +1,39 @@
kind: pipeline
name: backend
steps:
- name: backend
image: plugins/docker
settings:
repo: caminsha/lettergen-backend
context: ./backend
dockerfile: ./backend/Dockerfile.prod
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_SECRET
when:
branch:
- main
event:
- push
---
kind: pipeline
name: frontend
steps:
- name: frontend
image: plugins/docker
settings:
repo: caminsha/lettergen-frontend
context: ./frontend
dockerfile: ./frontend/Dockerfile.prod
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_SECRET
when:
branch:
- main
event:
- push