mirror of
https://github.com/lemeow125/EquipmentTracker-Frontend.git
synced 2024-11-17 06:09:25 +08:00
Run woodpecker job only on master branch
This commit is contained in:
parent
1c4f2b5d12
commit
440cd264a1
1 changed files with 2 additions and 0 deletions
|
@ -12,4 +12,6 @@ steps:
|
||||||
- npm run build
|
- npm run build
|
||||||
- ssh root@10.0.10.4 'rm -rf /mnt/sda1/files/projects/equipment_tracker_frontend/*'
|
- ssh root@10.0.10.4 'rm -rf /mnt/sda1/files/projects/equipment_tracker_frontend/*'
|
||||||
- scp -r dist/* root@10.0.10.4:/mnt/sda1/files/projects/equipment_tracker_frontend
|
- scp -r dist/* root@10.0.10.4:/mnt/sda1/files/projects/equipment_tracker_frontend
|
||||||
|
when:
|
||||||
|
- branch: master
|
||||||
secrets: [SSH_KEY]
|
secrets: [SSH_KEY]
|
||||||
|
|
Loading…
Reference in a new issue