mirror of
https://github.com/lemeow125/EquipmentTracker-Frontend.git
synced 2024-11-16 21:59:24 +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:
|
||||
- name: build & copy
|
||||
image: node:18-alpine
|
||||
when:
|
||||
- branch: master
|
||||
event: push
|
||||
commands:
|
||||
- apk add --no-cache openssh-client
|
||||
- mkdir -p /root/.ssh/
|
||||
|
@ -12,7 +15,4 @@ steps:
|
|||
- npm run build
|
||||
- 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
|
||||
when:
|
||||
- branch: master
|
||||
event: push
|
||||
secrets: [SSH_KEY]
|
||||
|
|
Loading…
Reference in a new issue