Add CI integration with drone #1
1 changed files with 39 additions and 0 deletions
39
.drone.yml
Normal file
39
.drone.yml
Normal 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
|
Loading…
Reference in a new issue