From 1a406e74bacbd38c87b5b10620c389c4e65276cf Mon Sep 17 00:00:00 2001 From: cami Date: Wed, 1 Sep 2021 01:20:13 +0200 Subject: [PATCH] Add CI integration with drone --- .drone.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..9cab997 --- /dev/null +++ b/.drone.yml @@ -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 -- 2.45.2