Move prototype 69-dagger-archon to top-level
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
33
examples/simple/simple.cue
Normal file
33
examples/simple/simple.cue
Normal file
@@ -0,0 +1,33 @@
|
||||
// ACME platform: everything you need to develop and ship improvements to
|
||||
// the ACME clothing store.
|
||||
package acme
|
||||
|
||||
import (
|
||||
"dagger.cloud/alpine"
|
||||
)
|
||||
|
||||
let base=alpine & {
|
||||
package: {
|
||||
bash: ">3.0"
|
||||
rsync: true
|
||||
}
|
||||
}
|
||||
|
||||
www: {
|
||||
|
||||
source: {
|
||||
#dagger: input: true
|
||||
}
|
||||
|
||||
host: string
|
||||
|
||||
url: {
|
||||
string
|
||||
|
||||
#dagger: compute: [
|
||||
{ do: "load", from: base },
|
||||
{ do: "exec", args: ["sh", "-c", "echo -n 'https://\(host)/foo' > /tmp/out"] },
|
||||
{ do: "export", format: "string", source: "/tmp/out" },
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user