Bachelorthesis_Code/.drone.yml

40 lines
683 B
YAML
Raw Normal View History

2021-07-11 23:49:21 +00:00
kind: pipeline
2021-07-12 00:24:19 +00:00
name: backend
2021-07-11 23:49:21 +00:00
2021-07-12 00:09:09 +00:00
steps:
2021-07-12 00:27:31 +00:00
- name: backend
2021-07-12 00:19:28 +00:00
image: plugins/docker
settings:
repo: caminsha/bt-backend
2021-07-12 17:05:33 +00:00
context: ./backend
2021-07-12 20:38:20 +00:00
dockerfile: ./backend/Dockerfile.prod
2021-07-12 00:24:19 +00:00
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_SECRET
when:
branch:
- main
event:
- push
---
kind: pipeline
name: frontend
steps:
2021-07-12 00:27:31 +00:00
- name: frontend
2021-07-12 00:24:19 +00:00
image: plugins/docker
settings:
repo: caminsha/bt-frontend
2021-07-12 17:05:33 +00:00
context: ./frontend
2021-07-12 20:38:20 +00:00
dockerfile: ./frontend/Dockerfile.prod
2021-07-12 00:19:28 +00:00
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_SECRET
when:
branch:
- main
event:
- push