mirror of
				https://github.com/appleboy/drone-ssh.git
				synced 2025-10-29 00:51:15 +08:00 
			
		
		
		
	feat: support group build (#76)
This commit is contained in:
		
							parent
							
								
									b698d56d60
								
							
						
					
					
						commit
						356b2ae6cc
					
				
							
								
								
									
										26
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										26
									
								
								.drone.yml
									
									
									
									
									
								
							| @ -29,6 +29,16 @@ pipeline: | |||||||
|     when: |     when: | ||||||
|       event: [ push, tag, pull_request ] |       event: [ push, tag, pull_request ] | ||||||
| 
 | 
 | ||||||
|  |   publish_latest: | ||||||
|  |     image: plugins/docker | ||||||
|  |     repo: ${DRONE_REPO} | ||||||
|  |     tags: [ 'latest' ] | ||||||
|  |     secrets: [ docker_username, docker_password ] | ||||||
|  |     when: | ||||||
|  |       event: [ push ] | ||||||
|  |       branch: [ master ] | ||||||
|  |       local: false | ||||||
|  | 
 | ||||||
|   release: |   release: | ||||||
|     image: appleboy/golang-testing |     image: appleboy/golang-testing | ||||||
|     pull: true |     pull: true | ||||||
| @ -47,24 +57,16 @@ pipeline: | |||||||
|     repo: ${DRONE_REPO} |     repo: ${DRONE_REPO} | ||||||
|     tags: [ '${DRONE_TAG}' ] |     tags: [ '${DRONE_TAG}' ] | ||||||
|     secrets: [ docker_username, docker_password ] |     secrets: [ docker_username, docker_password ] | ||||||
|  |     group: release | ||||||
|     when: |     when: | ||||||
|       event: [ tag ] |       event: [ tag ] | ||||||
|       branch: [ refs/tags/* ] |       branch: [ refs/tags/* ] | ||||||
|       local: false |       local: false | ||||||
| 
 | 
 | ||||||
|   publish_latest: |   release_tag: | ||||||
|     image: plugins/docker |  | ||||||
|     repo: ${DRONE_REPO} |  | ||||||
|     tags: [ 'latest' ] |  | ||||||
|     secrets: [ docker_username, docker_password ] |  | ||||||
|     when: |  | ||||||
|       event: [ push ] |  | ||||||
|       branch: [ master ] |  | ||||||
|       local: false |  | ||||||
| 
 |  | ||||||
|   release: |  | ||||||
|     image: plugins/github-release |     image: plugins/github-release | ||||||
|     secrets: [ github_token ] |     secrets: [ github_release_api_key ] | ||||||
|  |     group: release | ||||||
|     files: |     files: | ||||||
|       - dist/release/* |       - dist/release/* | ||||||
|     when: |     when: | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Bo-Yi Wu
						Bo-Yi Wu