mirror of
				https://github.com/appleboy/ssh-action.git
				synced 2025-11-04 07:43:53 +00:00 
			
		
		
		
	ci: update CI pipeline for better error handling
- Update Dockerfile to use a newer version of `drone-ssh` - Modify `ci.yml` to use `continue-on-error` instead of commenting out code Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
		
							parent
							
								
									6a1b59d972
								
							
						
					
					
						commit
						1d43d87d34
					
				
							
								
								
									
										26
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										26
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							@ -63,18 +63,20 @@ jobs:
 | 
				
			|||||||
          whoami
 | 
					          whoami
 | 
				
			||||||
          ls -al
 | 
					          ls -al
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # - name: stop script if command error
 | 
					    - name: stop script if command error
 | 
				
			||||||
    #   if: always()
 | 
					      uses: ./
 | 
				
			||||||
    #   uses: ./
 | 
					      continue-on-error: true
 | 
				
			||||||
    #   with:
 | 
					      with:
 | 
				
			||||||
    #     host: ${{ secrets.HOST }}
 | 
					        host: ${{ secrets.HOST }}
 | 
				
			||||||
    #     username: ${{ secrets.USERNAME }}
 | 
					        username: ${{ secrets.USERNAME }}
 | 
				
			||||||
    #     key: ${{ secrets.KEY }}
 | 
					        key: ${{ secrets.KEY }}
 | 
				
			||||||
    #     port: ${{ secrets.PORT }}
 | 
					        port: ${{ secrets.PORT }}
 | 
				
			||||||
    #     script_stop: true
 | 
					        script_stop: true
 | 
				
			||||||
    #     script: |
 | 
					        sync: true
 | 
				
			||||||
    #       mkdir abc/def
 | 
					        debug: true
 | 
				
			||||||
    #       ls -al
 | 
					        script: |
 | 
				
			||||||
 | 
					          mkdir abc/def
 | 
				
			||||||
 | 
					          ls -al
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - name: pass environment
 | 
					    - name: pass environment
 | 
				
			||||||
      uses: ./
 | 
					      uses: ./
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,4 @@
 | 
				
			|||||||
FROM appleboy/drone-ssh:1.6.10
 | 
					FROM ghcr.io/appleboy/drone-ssh:1.6.12
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY entrypoint.sh /entrypoint.sh
 | 
					COPY entrypoint.sh /entrypoint.sh
 | 
				
			||||||
RUN chmod +x /entrypoint.sh
 | 
					RUN chmod +x /entrypoint.sh
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user