Initial commit
This commit is contained in:
		
							
								
								
									
										35
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										35
									
								
								.drone.yml
									
									
									
									
									
								
							@@ -4,18 +4,27 @@ type: docker
 | 
				
			|||||||
name: build
 | 
					name: build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
- name: build
 | 
					# - name: build
 | 
				
			||||||
  image: squidfunk/mkdocs-material:7.1.9
 | 
					#   image: squidfunk/mkdocs-material:7.1.9
 | 
				
			||||||
  volumes:
 | 
					#   volumes:
 | 
				
			||||||
  - name: site
 | 
					#   - name: site
 | 
				
			||||||
    path: /site
 | 
					#     path: /site
 | 
				
			||||||
  commands:
 | 
					#   commands:
 | 
				
			||||||
  - /usr/local/bin/python -m pip install --upgrade pip
 | 
					#   - /usr/local/bin/python -m pip install --upgrade pip
 | 
				
			||||||
  - mkdocs build
 | 
					#   - mkdocs build
 | 
				
			||||||
  - cp -r site/ /site
 | 
					#   - cp -r site/ /site
 | 
				
			||||||
  - chmod -R 777 /site
 | 
					#   - chmod -R 777 /site
 | 
				
			||||||
 | 
					
 | 
				
			||||||
volumes:
 | 
					- name: ssh
 | 
				
			||||||
- name: site
 | 
					  image: appleboy/drone-ssh
 | 
				
			||||||
 | 
					  settings:
 | 
				
			||||||
    host:
 | 
					    host:
 | 
				
			||||||
    path: /mnt/user/Docker/wiki_backup
 | 
					      from_secret: ssh_server
 | 
				
			||||||
 | 
					    username:
 | 
				
			||||||
 | 
					      from_secret: ssh_username
 | 
				
			||||||
 | 
					    password:
 | 
				
			||||||
 | 
					      from_secret: ssh_password
 | 
				
			||||||
 | 
					    port: 22
 | 
				
			||||||
 | 
					    command_timeout: 2m
 | 
				
			||||||
 | 
					    script:
 | 
				
			||||||
 | 
					      - bash /mnt/user/Backups/wiki/git_pull.sh
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user