Fix broken docker.#Command secrets mount

Signed-off-by: guillaume <guillaume.derouville@gmail.com>
This commit is contained in:
guillaume
2021-12-03 13:10:08 +01:00
parent 764ef2761c
commit 7d753660d0
3 changed files with 19 additions and 14 deletions

View File

@@ -43,13 +43,10 @@ import (
}
// Mount content from other artifacts
mount: {
[string]: {
from: dagger.#Artifact
} | {
secret: dagger.#Secret
}
}
mount: [string]: from: dagger.#Artifact
// Mount secrets
secret: [string]: dagger.#Secret
// Mount persistent cache directories
cache: {
@@ -226,6 +223,9 @@ import (
for dest, o in mount {
"\(dest)": o
}
for dest, s in secret {
"\(dest)": secret: s
}
for dest, _ in cache {
"\(dest)": "cache"
}