Universe: fix alpine.#Build

Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
This commit is contained in:
Sam Alba 2022-01-19 09:58:38 -08:00
parent 9650940dd5
commit f891065b9f
2 changed files with 15 additions and 9 deletions

View File

@ -22,14 +22,16 @@ let defaultVersion = "3.13.5@sha256:69e70a79f2d41ab5d637de98c1e0b055206ba40a8145
source: "index.docker.io/alpine:\(version)"
},
for pkgName, pkg in packages {
run: cmd: {
docker.#Run & {
cmd: {
name: "apk"
args: ["add", "\(pkgName)\(version)"]
args: ["add", "\(pkgName)\(pkg.version)"]
flags: {
"-U": true
"--no-cache": true
}
}
}
},
]
}

View File

@ -47,9 +47,13 @@ import (
// Yarn version
// yarnVersion: *"=~1.22" | string
// FIXME: trouble getting docker.#Build to work (cueflow task dependencies not working)
image: alpine.#Build & {
packages: "bash": {}
image: docker.#Image | *{
alpine.#Build & {
packages: {
"bash": {}
"yarn": {}
}
}
}
// Run yarn in a containerized build environment