8d104c9e10
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
42 lines
661 B
CUE
42 lines
661 B
CUE
// ACME platform: everything you need to develop and ship improvements to
|
|
// the ACME clothing store.
|
|
package acme
|
|
|
|
import (
|
|
"dagger.cloud/alpine"
|
|
"dagger.cloud/dagger"
|
|
)
|
|
|
|
let base=alpine & {
|
|
package: {
|
|
bash: ">3.0"
|
|
rsync: true
|
|
}
|
|
}
|
|
|
|
www: {
|
|
|
|
source: {
|
|
#dagger: compute: []
|
|
}
|
|
|
|
host: string
|
|
|
|
url: {
|
|
string
|
|
|
|
#dagger: compute: [
|
|
dagger.#Load & { from: base },
|
|
dagger.#Exec & {
|
|
args: ["sh", "-c", "echo -n 'https://\(host)/foo' > /tmp/out"]
|
|
// https://github.com/blocklayerhq/dagger/issues/6
|
|
mount: foo: {}
|
|
},
|
|
dagger.#Export & {
|
|
// https://github.com/blocklayerhq/dagger/issues/8
|
|
// source: "/tmp/out"
|
|
},
|
|
]
|
|
}
|
|
}
|