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
|
||||
type: docker
|
||||
name: default
|
||||
type: docker
|
||||
name: deploy
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
|
||||
steps:
|
||||
- name: build_deploy
|
||||
- name: build
|
||||
privileged: true
|
||||
image: node:latest
|
||||
commands:
|
||||
- npm install
|
||||
- npm run build
|
||||
- cp -r ./build/* /bonfire/
|
||||
- ls .
|
||||
- ls /
|
||||
- ls /bonfire/
|
||||
- cat /bonfire/index.html
|
||||
|
||||
- name: build
|
||||
image: byteflair/scp
|
||||
commands:
|
||||
- scp -r ./build light@5.75.206.84:/home/light/bonfire_dev
|
||||
|
|
Loading…
Add table
Reference in a new issue