ci: fix marshalling error
This commit is contained in:
		
							parent
							
								
									afe0e68288
								
							
						
					
					
						commit
						762811a6d7
					
				
					 1 changed files with 22 additions and 23 deletions
				
			
		
							
								
								
									
										21
									
								
								.drone.yml
									
										
									
									
									
								
							
							
						
						
									
										21
									
								
								.drone.yml
									
										
									
									
									
								
							| 
						 | 
					@ -7,19 +7,18 @@ trigger:
 | 
				
			||||||
  - main
 | 
					  - main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
  - name: build
 | 
					- name: build
 | 
				
			||||||
  image: node:latest
 | 
					  image: node:latest
 | 
				
			||||||
  commands:
 | 
					  commands:
 | 
				
			||||||
    - npm install
 | 
					    - npm install
 | 
				
			||||||
    - npm run build
 | 
					    - npm run build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - name: deploy
 | 
					- name: deploy
 | 
				
			||||||
  image: byteflair/scp
 | 
					  image: byteflair/scp
 | 
				
			||||||
  commands:
 | 
					  commands:
 | 
				
			||||||
      - |
 | 
					    - ssh 'light@5.75.206.84' 'rm -rf /home/light/bonfire_dev/*'
 | 
				
			||||||
        ssh 'light@5.75.206.84' 'rm -rf /home/light/bonfire_dev/*'
 | 
					    - mv ./build ./bonfire_dev
 | 
				
			||||||
        mv ./build ./bonfire_dev
 | 
					    - scp -r './bonfire_dev/' 'light@5.75.206.84:/home/light/'
 | 
				
			||||||
        scp -r './bonfire_dev/' 'light@5.75.206.84:/home/light/'
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
kind: pipeline
 | 
					kind: pipeline
 | 
				
			||||||
| 
						 | 
					@ -31,15 +30,15 @@ trigger:
 | 
				
			||||||
  - tag
 | 
					  - tag
 | 
				
			||||||
 | 
					
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
  - name: build
 | 
					- name: build
 | 
				
			||||||
  image: node:latest
 | 
					  image: node:latest
 | 
				
			||||||
  commands:
 | 
					  commands:
 | 
				
			||||||
    - npm install
 | 
					    - npm install
 | 
				
			||||||
    - npm run build
 | 
					    - npm run build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - name: deploy
 | 
					- name: deploy
 | 
				
			||||||
  image: byteflair/scp
 | 
					  image: byteflair/scp
 | 
				
			||||||
  commands: 
 | 
					  commands: 
 | 
				
			||||||
        ssh 'light@5.75.206.84' 'rm -rf /home/light/bonfire/*'
 | 
					    - ssh 'light@5.75.206.84' 'rm -rf /home/light/bonfire/*'
 | 
				
			||||||
        mv ./build ./bonfire
 | 
					    - mv ./build ./bonfire
 | 
				
			||||||
        scp -r './bonfire/' 'light@5.75.206.84:/home/light/'
 | 
					    - scp -r './bonfire/' 'light@5.75.206.84:/home/light/'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue