build: add gitea runner
This commit is contained in:
		
							parent
							
								
									e27626d087
								
							
						
					
					
						commit
						771ca8af79
					
				
							
								
								
									
										14
									
								
								.ansible/files/sour.is-paste.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								.ansible/files/sour.is-paste.service
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,14 @@
 | 
				
			|||||||
 | 
					[Unit]
 | 
				
			||||||
 | 
					Description=sour.is paste
 | 
				
			||||||
 | 
					After=syslog.target network.target
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Service]
 | 
				
			||||||
 | 
					Type=simple
 | 
				
			||||||
 | 
					ExecStart=/usr/local/bin/sour.is-paste
 | 
				
			||||||
 | 
					User=www-data
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Restart=always
 | 
				
			||||||
 | 
					RestartSec=30
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Install]
 | 
				
			||||||
 | 
					WantedBy=multi-user.target
 | 
				
			||||||
							
								
								
									
										5
									
								
								.ansible/inventory
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								.ansible/inventory
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					[lavana]
 | 
				
			||||||
 | 
					lavana.sour.is
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[kapha]
 | 
				
			||||||
 | 
					kapha.sour.is
 | 
				
			||||||
							
								
								
									
										25
									
								
								.ansible/playbook.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								.ansible/playbook.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,25 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					- name: Deploy EV
 | 
				
			||||||
 | 
					  hosts: kapha
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  tasks:
 | 
				
			||||||
 | 
					  - name: Copy build to remote
 | 
				
			||||||
 | 
					    ansible.builtin.copy:
 | 
				
			||||||
 | 
					      src: ../build/sour.is-paste
 | 
				
			||||||
 | 
					      dest: /usr/local/bin/sour.is-paste
 | 
				
			||||||
 | 
					      owner: root 
 | 
				
			||||||
 | 
					      group: root
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  - name: Copy build to remote
 | 
				
			||||||
 | 
					    ansible.builtin.copy:
 | 
				
			||||||
 | 
					      src: sour.is-paste.service
 | 
				
			||||||
 | 
					      dest: /etc/systemd/system/sour.is-paste.service 
 | 
				
			||||||
 | 
					      owner: root 
 | 
				
			||||||
 | 
					      group: root
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  - name: Restart service
 | 
				
			||||||
 | 
					    systemd:
 | 
				
			||||||
 | 
					      name: sour.is-paste 
 | 
				
			||||||
 | 
					      enabled: true 
 | 
				
			||||||
 | 
					      daemon_reload: true
 | 
				
			||||||
 | 
					      state: restarted
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user