mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	use drone secrets for s3 config (#22770)
This commit is contained in:
		
							
								
								
									
										42
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										42
									
								
								.drone.yml
									
									
									
									
									
								
							@@ -763,10 +763,16 @@ steps:
 | 
			
		||||
    image: woodpeckerci/plugin-s3:latest
 | 
			
		||||
    pull: always
 | 
			
		||||
    settings:
 | 
			
		||||
      acl: public-read
 | 
			
		||||
      bucket: gitea-artifacts
 | 
			
		||||
      endpoint: https://ams3.digitaloceanspaces.com
 | 
			
		||||
      path_style: true
 | 
			
		||||
      acl:
 | 
			
		||||
        from_secret: aws_s3_acl
 | 
			
		||||
      region:
 | 
			
		||||
        from_secret: aws_s3_region
 | 
			
		||||
      bucket:
 | 
			
		||||
        from_secret: aws_s3_bucket
 | 
			
		||||
      endpoint:
 | 
			
		||||
        from_secret: aws_s3_endpoint
 | 
			
		||||
      path_style:
 | 
			
		||||
        from_secret: aws_s3_path_style
 | 
			
		||||
      source: "dist/release/*"
 | 
			
		||||
      strip_prefix: dist/release/
 | 
			
		||||
      target: "/gitea/${DRONE_BRANCH##release/v}"
 | 
			
		||||
@@ -784,10 +790,16 @@ steps:
 | 
			
		||||
  - name: release-main
 | 
			
		||||
    image: woodpeckerci/plugin-s3:latest
 | 
			
		||||
    settings:
 | 
			
		||||
      acl: public-read
 | 
			
		||||
      bucket: gitea-artifacts
 | 
			
		||||
      endpoint: https://ams3.digitaloceanspaces.com
 | 
			
		||||
      path_style: true
 | 
			
		||||
      acl:
 | 
			
		||||
        from_secret: aws_s3_acl
 | 
			
		||||
      region:
 | 
			
		||||
        from_secret: aws_s3_region
 | 
			
		||||
      bucket:
 | 
			
		||||
        from_secret: aws_s3_bucket
 | 
			
		||||
      endpoint:
 | 
			
		||||
        from_secret: aws_s3_endpoint
 | 
			
		||||
      path_style:
 | 
			
		||||
        from_secret: aws_s3_path_style
 | 
			
		||||
      source: "dist/release/*"
 | 
			
		||||
      strip_prefix: dist/release/
 | 
			
		||||
      target: /gitea/main
 | 
			
		||||
@@ -886,10 +898,16 @@ steps:
 | 
			
		||||
    image: woodpeckerci/plugin-s3:latest
 | 
			
		||||
    pull: always
 | 
			
		||||
    settings:
 | 
			
		||||
      acl: public-read
 | 
			
		||||
      bucket: gitea-artifacts
 | 
			
		||||
      endpoint: https://ams3.digitaloceanspaces.com
 | 
			
		||||
      path_style: true
 | 
			
		||||
      acl:
 | 
			
		||||
        from_secret: aws_s3_acl
 | 
			
		||||
      region:
 | 
			
		||||
        from_secret: aws_s3_region
 | 
			
		||||
      bucket:
 | 
			
		||||
        from_secret: aws_s3_bucket
 | 
			
		||||
      endpoint:
 | 
			
		||||
        from_secret: aws_s3_endpoint
 | 
			
		||||
      path_style:
 | 
			
		||||
        from_secret: aws_s3_path_style
 | 
			
		||||
      source: "dist/release/*"
 | 
			
		||||
      strip_prefix: dist/release/
 | 
			
		||||
      target: "/gitea/${DRONE_TAG##v}"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user