574e9ccf16
Signed-off-by: David Flanagan <david@rawkode.dev>
25 lines
547 B
CUE
25 lines
547 B
CUE
package rawkode_pulumi_example
|
|
|
|
import (
|
|
"dagger.io/dagger"
|
|
"universe.dagger.io/x/david@rawkode.dev/pulumi"
|
|
)
|
|
|
|
dagger.#Plan & {
|
|
client: {
|
|
filesystem: "./": read: contents: dagger.#FS
|
|
env: {
|
|
PULUMI_ACCESS_TOKEN: dagger.#Secret
|
|
// If not using Pulumi SaaS, use CONFIG_PASSPHRASE
|
|
// PULUMI_CONFIG_PASSPHRASE: dagger.#Secret
|
|
}
|
|
}
|
|
actions: rawkode: pulumi.#Up & {
|
|
stack: "test"
|
|
stackCreate: true
|
|
runtime: "nodejs"
|
|
accessToken: client.env.PULUMI_ACCESS_TOKEN
|
|
source: client.filesystem."./".read.contents
|
|
}
|
|
}
|