mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-06-07 18:08:48 +00:00
parent
de033176fd
commit
80d5d233b3
1 changed files with 8 additions and 1 deletions
|
@ -68,9 +68,16 @@ func (e *local) IsAvailable(context.Context) bool {
|
||||||
|
|
||||||
func (e *local) Load(context.Context) error {
|
func (e *local) Load(context.Context) error {
|
||||||
dir, err := os.MkdirTemp("", "woodpecker-local-*")
|
dir, err := os.MkdirTemp("", "woodpecker-local-*")
|
||||||
e.workflowBaseDir = dir
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
e.workflowBaseDir = dir
|
||||||
|
|
||||||
|
if err := os.Mkdir(filepath.Join(e.workflowBaseDir, workingSubDir), 0o700); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return os.Mkdir(filepath.Join(e.workflowBaseDir, homeSubDir), 0o700)
|
||||||
|
}
|
||||||
|
|
||||||
// Setup the pipeline environment.
|
// Setup the pipeline environment.
|
||||||
func (e *local) Setup(_ context.Context, _ *types.Config) error {
|
func (e *local) Setup(_ context.Context, _ *types.Config) error {
|
||||||
|
|
Loading…
Reference in a new issue