deployment automatisierung
This commit is contained in:
		
							
								
								
									
										10
									
								
								.deploy-ignore
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								.deploy-ignore
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					- .git
 | 
				
			||||||
 | 
					- node_modules
 | 
				
			||||||
 | 
					- bower*
 | 
				
			||||||
 | 
					- linux-kurs.sublime*
 | 
				
			||||||
 | 
					- .gitignore
 | 
				
			||||||
 | 
					- deploy.sh 
 | 
				
			||||||
 | 
					- .deploy-ignore 
 | 
				
			||||||
 | 
					- ssh-nutzer.txt
 | 
				
			||||||
 | 
					- *.lock
 | 
				
			||||||
 | 
					- *.yml
 | 
				
			||||||
							
								
								
									
										9
									
								
								deploy.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								deploy.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					deploy() {
 | 
				
			||||||
 | 
					  git push && rsync -r --exclude-from=.deploy-ignore . pax2ero:/home/dany/www/schubertdaniel/linuxkurs 
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					deploy &&  echo "Deployed" || echo "### some error #####"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										9
									
								
								gitlab-ci.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								gitlab-ci.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					stages:
 | 
				
			||||||
 | 
					 - deploy
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					pages:
 | 
				
			||||||
 | 
					 stage: deploy
 | 
				
			||||||
 | 
					 script:
 | 
				
			||||||
 | 
					 - mkdir /home/dany/hallo
 | 
				
			||||||
 | 
					 only:
 | 
				
			||||||
 | 
					 - master
 | 
				
			||||||
		Reference in New Issue
	
	Block a user