This commit is contained in:
		
							parent
							
								
									75e14157b8
								
							
						
					
					
						commit
						dccc03d3de
					
				
					 1 changed files with 10 additions and 14 deletions
				
			
		
							
								
								
									
										24
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								.drone.yml
									
									
									
									
									
								
							| 
						 | 
					@ -1,6 +1,15 @@
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
kind: pipeline
 | 
					kind: pipeline
 | 
				
			||||||
name: build
 | 
					name: build and deploy
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					deploy_commands_alias:
 | 
				
			||||||
 | 
					- &deploy_commands
 | 
				
			||||||
 | 
					  commands:
 | 
				
			||||||
 | 
					  - echo "deploy $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_DIR or $${DEPLOY_DIR}"
 | 
				
			||||||
 | 
					  - echo "$DEPLOY_KEY" | sed 's/!/\n/g' > deploy_key
 | 
				
			||||||
 | 
					  - chmod 0600 deploy_key
 | 
				
			||||||
 | 
					  - ssh -i deploy_key -o StrictHostKeyChecking=no $DEPLOY_USER@$DEPLOY_HOST rm -Rf $${DEPLOY_DIR}/output/
 | 
				
			||||||
 | 
					  - scp -r -i deploy_key -o StrictHostKeyChecking=no output $DEPLOY_USER@$DEPLOY_HOST:$${DEPLOY_DIR}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
- name: markdown lint
 | 
					- name: markdown lint
 | 
				
			||||||
| 
						 | 
					@ -13,19 +22,6 @@ steps:
 | 
				
			||||||
  commands:
 | 
					  commands:
 | 
				
			||||||
  - pelican content -o output -s pelicanconf.py
 | 
					  - pelican content -o output -s pelicanconf.py
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
deploy_commands:
 | 
					 | 
				
			||||||
- &deploy_commands
 | 
					 | 
				
			||||||
  commands:
 | 
					 | 
				
			||||||
  - echo "deploy $DEPLOY_USER@$DEPLOY_HOST"
 | 
					 | 
				
			||||||
  - echo "$DEPLOY_KEY" | sed 's/!/\n/g' > deploy_key
 | 
					 | 
				
			||||||
  - chmod 0600 deploy_key
 | 
					 | 
				
			||||||
  - ssh -i deploy_key -o StrictHostKeyChecking=no $DEPLOY_USER@$DEPLOY_HOST rm -Rf ${DEPLOY_DIR}/output/
 | 
					 | 
				
			||||||
  - scp -r -i deploy_key -o StrictHostKeyChecking=no output $DEPLOY_USER@$DEPLOY_HOST:${DEPLOY_DIR}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
kind: pipeline
 | 
					 | 
				
			||||||
name: deploy
 | 
					 | 
				
			||||||
- name: deploy staging
 | 
					- name: deploy staging
 | 
				
			||||||
  image: kroniak/ssh-client
 | 
					  image: kroniak/ssh-client
 | 
				
			||||||
  environment:
 | 
					  environment:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue