You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-11-23 21:44:44 +02:00
Let the backend engine report the current platform (#2688)
if you run woodpecker-agent on windows and connect it to an docker daemon, there could be two different platforms possible, as you can switch from linux to windows mode and visa versa --- *Sponsored by Kithara Software GmbH*
This commit is contained in:
@@ -60,10 +60,12 @@ func (e *local) IsAvailable(context.Context) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (e *local) Load(context.Context) error {
|
||||
func (e *local) Load(context.Context) (*types.EngineInfo, error) {
|
||||
e.loadClone()
|
||||
|
||||
return nil
|
||||
return &types.EngineInfo{
|
||||
Platform: runtime.GOOS + "/" + runtime.GOARCH,
|
||||
}, nil
|
||||
}
|
||||
|
||||
// SetupWorkflow the pipeline environment.
|
||||
|
||||
Reference in New Issue
Block a user