Expanding on what I'm trying to accomplish:
- After committing code to a locally-hosted Git server, a Drone pipeline is to test, then build, and finally deploy a React project on said server.
Limitations:
- I have minimal React & pipeline experience
- Keeping everything locally hosted (Gitea, Drone, etc)
- KISS, preferably a single pipeline building, deploying, and taking down a previous container once new code is pushed
- I've seen similar guides recommending Docker registries to push the container to, but I'm similarly falling short on implementation/guidance
Where I'm falling short:
- Said React project is being built, but am unsure as to how to proceed to deploying.
Current pipeline:
# .drone.yml
kind: pipeline
type: docker
name: example-build
trigger:
branch:
- master
event:
- push
steps:
- name: build-static-files
image: node:latest
commands:
- pwd
- whoami
- ls -al /drone
- ls -al /drone/src
- npm i socket.io-client @types/socket.io-client
- chmod 777 -R ./node_modules/
- npm run build