build: add gitea runner
This commit is contained in:
		
							parent
							
								
									4e99021518
								
							
						
					
					
						commit
						0d8446639e
					
				@ -43,23 +43,23 @@ jobs:
 | 
				
			|||||||
        go-version: 1.21.1
 | 
					        go-version: 1.21.1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - name: Build
 | 
					    - name: Build
 | 
				
			||||||
      run: go build -ldflags "-s -w" -o build/ev ./cmd/ev
 | 
					      run: go build -ldflags "-s -w" -o ./build/ev ./cmd/ev
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - name: Compress
 | 
					    - name: Compress
 | 
				
			||||||
      uses: https://git.sour.is/actions/ghaction-upx@v2.4.0
 | 
					      uses: https://git.sour.is/actions/ghaction-upx@v2.4.0
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        version: latest
 | 
					        version: latest
 | 
				
			||||||
        files: |
 | 
					        files: |
 | 
				
			||||||
            ./cmd/ev
 | 
					            ./build/ev
 | 
				
			||||||
        args: -fq
 | 
					        args: -fq
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - name: Deploy
 | 
					    - name: Deploy
 | 
				
			||||||
      uses: https://git.sour.is/actions/action-ansible-playbook@v2
 | 
					      uses: https://git.sour.is/actions/action-ansible-playbook@v2
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        playbook: .ansible/playbook.yml
 | 
					        playbook: ${{ gitea.workspace }}/.ansible/playbook.yml
 | 
				
			||||||
        key: ${{secrets.deploy_ssh}}
 | 
					        key: ${{secrets.deploy_ssh}}
 | 
				
			||||||
        options: |
 | 
					        options: |
 | 
				
			||||||
          --inventory .hosts
 | 
					          --inventory .ansible/inventory
 | 
				
			||||||
          --become
 | 
					          --become
 | 
				
			||||||
          --become-method sudo
 | 
					          --become-method sudo
 | 
				
			||||||
          --user deploy
 | 
					          --user deploy
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user