mirror of
https://github.com/lemeow125/EquipmentTracker-Frontend.git
synced 2024-11-17 06:09:25 +08:00
Update .woodpecker.yml
This commit is contained in:
parent
2c4ec9a8d6
commit
2029131006
1 changed files with 3 additions and 3 deletions
|
@ -2,6 +2,9 @@
|
||||||
steps:
|
steps:
|
||||||
- name: build & copy
|
- name: build & copy
|
||||||
image: node:18-alpine
|
image: node:18-alpine
|
||||||
|
when:
|
||||||
|
- branch: master
|
||||||
|
event: push
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache openssh-client
|
- apk add --no-cache openssh-client
|
||||||
- mkdir -p /root/.ssh/
|
- mkdir -p /root/.ssh/
|
||||||
|
@ -12,7 +15,4 @@ steps:
|
||||||
- npm run build
|
- npm run build
|
||||||
- ssh root@10.0.10.4 'rm -rf /mnt/nvme/www/equipment_tracker_frontend/*'
|
- ssh root@10.0.10.4 'rm -rf /mnt/nvme/www/equipment_tracker_frontend/*'
|
||||||
- scp -r dist/* root@10.0.10.4:/mnt/nvme/www/equipment_tracker_frontend
|
- scp -r dist/* root@10.0.10.4:/mnt/nvme/www/equipment_tracker_frontend
|
||||||
when:
|
|
||||||
- branch: master
|
|
||||||
event: push
|
|
||||||
secrets: [SSH_KEY]
|
secrets: [SSH_KEY]
|
||||||
|
|
Loading…
Reference in a new issue