Some very basic questions I hope can be answered, never used any CI/CD or docker before.
I have 2 repos, a frontend (react) and a backend (node.js). What I want to accomplish is when a pull request is merged or a push happens I want both repos to be pulled, built and start running them on the host with drone so that a change in code automatically is available to the dev URL. Is this something drone can do?
I can see from the documentation that it does most things, but I don’t see anywhere where it either spins up a docker image for the FE and BE that is live or where it outputs a build of both that can be started on the host machine (or I guess on the drone docker if that is how it is supposed to work?)
I currently have drone setup, and did a basic yaml script for the backend, but can’t figure out how to access/run the result?
kind: pipeline
name: wheelhouse-BE
steps:
-name: build
image: node:10.15.3-stretch
commands:
- node app.js
when:
event:
- push
- pull-request
It completes fine in drone, but obviously I want to then it running somewhere for the FE to access it.
The log from drone after it completes:
Initialized empty Git repository in /drone/src/.git/
2 + git fetch origin +refs/heads/master:
3 From https://gitlab.com/whp/wh-backend
4 * branch master -> FETCH_HEAD
5 * [new branch] master -> origin/master
6 + git checkout b5055cedd7de5423af272f878364a6ac9ae3fe07 -b master
7 Already on ‘master’
I couldn’t seem to find any guides that covered this aspect of it.