stdlib: add random package

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-06-08 11:46:31 -07:00
parent 4c40a87634
commit db0937c927
24 changed files with 152 additions and 580 deletions

View File

@@ -3,6 +3,7 @@ package docker
import (
"dagger.io/docker"
"dagger.io/dagger"
"dagger.io/random"
)
key: dagger.#Secret @dagger(input)
@@ -10,14 +11,16 @@ passphrase: dagger.#Secret @dagger(input)
user: string @dagger(input)
TestRun: {
random: #Random & {}
suffix: random.#String & {
seed: ""
}
run: docker.#Run & {
host: "143.198.64.230"
ref: "nginx:alpine"
"user": user
"passphrase": passphrase
name: "daggerci-test-simple-\(random.out)"
name: "daggerci-test-simple-\(suffix.out)"
"key": key
}
}