Brief-Generator/.drone.yml

40 lines
697 B
YAML
Raw Normal View History

2021-08-31 23:20:13 +00:00
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