ci: add deployment via scp
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
c4a4031065
commit
d17224bcc6
1 changed files with 11 additions and 8 deletions
19
.drone.yml
19
.drone.yml
|
@ -1,16 +1,19 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: deploy
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build_deploy
|
- name: build
|
||||||
privileged: true
|
privileged: true
|
||||||
image: node:latest
|
image: node:latest
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
- cp -r ./build/* /bonfire/
|
|
||||||
- ls .
|
- name: build
|
||||||
- ls /
|
image: byteflair/scp
|
||||||
- ls /bonfire/
|
commands:
|
||||||
- cat /bonfire/index.html
|
- scp -r ./build light@5.75.206.84:/home/light/bonfire_dev
|
||||||
|
|
Loading…
Add table
Reference in a new issue