You've already forked woodpecker
							
							
				mirror of
				https://github.com/woodpecker-ci/woodpecker.git
				synced 2025-10-30 23:27:39 +02:00 
			
		
		
		
	Merge pull request #2198 from praxist/drone_filter_to_agent
Let agent pass filter expression string for builds
This commit is contained in:
		| @@ -32,6 +32,7 @@ func loop(c *cli.Context) error { | ||||
| 		Labels: map[string]string{ | ||||
| 			"platform": c.String("platform"), | ||||
| 		}, | ||||
| 		Expr: c.String("drone-filter"), | ||||
| 	} | ||||
|  | ||||
| 	hostname := c.String("hostname") | ||||
|   | ||||
| @@ -48,6 +48,11 @@ func main() { | ||||
| 			Name:   "platform", | ||||
| 			Value:  "linux/amd64", | ||||
| 		}, | ||||
| 		cli.StringFlag{ | ||||
| 			EnvVar: "DRONE_FILTER", | ||||
| 			Name:   "drone-filter", | ||||
| 			Usage:  "A filter expression used to restrict builds by label", | ||||
| 		}, | ||||
| 		cli.IntFlag{ | ||||
| 			EnvVar: "DRONE_MAX_PROCS", | ||||
| 			Name:   "max-procs", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user