Bachelorthesis_Code/.drone.yml
cami 5d15fbcd3d
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Use prod build for public things
2021-07-12 22:38:20 +02:00

39 lines
683 B
YAML

kind: pipeline
name: backend
steps:
- name: backend
image: plugins/docker
settings:
repo: caminsha/bt-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/bt-frontend
context: ./frontend
dockerfile: ./frontend/Dockerfile.prod
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_SECRET
when:
branch:
- main
event:
- push