Move prototype 69-dagger-archon to top-level
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
63
examples/acme-platform/mynetlify.cue
Normal file
63
examples/acme-platform/mynetlify.cue
Normal file
@@ -0,0 +1,63 @@
|
||||
package netlify
|
||||
|
||||
import (
|
||||
".../alpine"
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
auth: {
|
||||
#dag: {
|
||||
encrypted: true
|
||||
do: [
|
||||
{
|
||||
action: "fetch"
|
||||
type: "docker"
|
||||
source: "alpine"
|
||||
},
|
||||
{
|
||||
action: "push"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
{
|
||||
username: string
|
||||
password: string
|
||||
} | {
|
||||
// FIXME: enrypted!
|
||||
token: string
|
||||
}
|
||||
}
|
||||
|
||||
name: string
|
||||
domain?: string
|
||||
// FIXME: directory!
|
||||
source: bl.#Dir
|
||||
|
||||
let base = alpine.#Image & {
|
||||
version: "foo"
|
||||
packages: ["rsync", "npm", "openssh"]
|
||||
}
|
||||
|
||||
// Netlify site ID
|
||||
id: {
|
||||
info1: string
|
||||
info2: string
|
||||
|
||||
#dag: {
|
||||
// run code to fetch id from netlify API
|
||||
from: base
|
||||
do: [
|
||||
{
|
||||
action: "run"
|
||||
command: ["netlify-get-id", name, "-o", "/netlify-id.json"]
|
||||
}
|
||||
]
|
||||
export: json: "/netlify-id.json"
|
||||
}
|
||||
}
|
||||
|
||||
url: string
|
Reference in New Issue
Block a user