ce7cb702218693d08ea6d83464d2457c9250027c
This commit is contained in:
commit
34c5f8963c
1 changed files with 145336 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
open System
|
||||
open System.IO
|
||||
|
||||
[ "source/archive"
|
||||
"source/repository"
|
||||
"source/tmp"
|
||||
"toolchain"
|
||||
"toolchain/tmp"
|
||||
"state/cache-tmp"
|
||||
"output/go-cache"
|
||||
"output/bin"
|
||||
"output/layout"
|
||||
"output/result"
|
||||
"output/tmp"
|
||||
"output/publish-tmp"
|
||||
"output/cache-tmp" ]
|
||||
|> List.iter (fun path -> Directory.CreateDirectory(Path.Combine("/workspace", path)) |> ignore)
|
||||
|
||||
match Environment.GetEnvironmentVariable "POD_NAME" with
|
||||
| value when String.IsNullOrWhiteSpace value -> invalidOp "pod name is unavailable"
|
||||
| value -> File.WriteAllText("/workspace/.claim-name", $"{value}-workflow-workspace")
|
||||
Loading…
Reference in a new issue