fix: appease the linter
Signed-off-by: David Flanagan <david@rawkode.dev>
This commit is contained in:
parent
4074b5d264
commit
88748d3563
@ -7,23 +7,17 @@ import (
|
|||||||
|
|
||||||
dagger.#Plan & {
|
dagger.#Plan & {
|
||||||
client: {
|
client: {
|
||||||
filesystem: {
|
filesystem: "./": read: contents: dagger.#FS
|
||||||
"./": read: {
|
|
||||||
contents: dagger.#FS
|
|
||||||
}
|
|
||||||
}
|
|
||||||
env: {
|
env: {
|
||||||
PULUMI_CONFIG_PASSPHRASE: dagger.#Secret
|
PULUMI_CONFIG_PASSPHRASE: dagger.#Secret
|
||||||
PULUMI_ACCESS_TOKEN: dagger.#Secret
|
PULUMI_ACCESS_TOKEN: dagger.#Secret
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
actions: {
|
actions: rawkode: pulumi.#Up & {
|
||||||
rawkode: pulumi.#Up & {
|
stack: "test"
|
||||||
stack: "test"
|
stackCreate: true
|
||||||
stackCreate: true
|
runtime: "nodejs"
|
||||||
runtime: "nodejs"
|
accessToken: client.env.PULUMI_ACCESS_TOKEN
|
||||||
accessToken: client.env.PULUMI_ACCESS_TOKEN
|
source: client.filesystem."./".read.contents
|
||||||
source: client.filesystem."./".read.contents
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -65,11 +65,11 @@ import (
|
|||||||
}
|
}
|
||||||
workdir: "/src"
|
workdir: "/src"
|
||||||
mounts: {
|
mounts: {
|
||||||
"src": {
|
src: {
|
||||||
dest: "/src"
|
dest: "/src"
|
||||||
contents: source
|
contents: source
|
||||||
}
|
}
|
||||||
"node_modules": {
|
node_modules: {
|
||||||
dest: "/src/node_modules"
|
dest: "/src/node_modules"
|
||||||
type: "cache"
|
type: "cache"
|
||||||
contents: core.#CacheDir & {
|
contents: core.#CacheDir & {
|
||||||
|
@ -13,21 +13,21 @@ fi
|
|||||||
if test -v PULUMI_ACCESS_TOKEN; then
|
if test -v PULUMI_ACCESS_TOKEN; then
|
||||||
if (pulumi stack ls | grep -e "^${STACK_NAME}"); then
|
if (pulumi stack ls | grep -e "^${STACK_NAME}"); then
|
||||||
echo "Stack exists, let's refresh"
|
echo "Stack exists, let's refresh"
|
||||||
pulumi stack select ${PULUMI_STACK}
|
pulumi stack select "${PULUMI_STACK}"
|
||||||
# Could be first deployment, so let's not worry about this failing
|
# Could be first deployment, so let's not worry about this failing
|
||||||
pulumi config refresh --force || true
|
pulumi config refresh --force || true
|
||||||
else
|
else
|
||||||
echo "Stack does not exist, let's create"
|
echo "Stack does not exist, let's create"
|
||||||
pulumi stack init ${PULUMI_STACK}
|
pulumi stack init "${PULUMI_STACK}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Not using Pulumi SaaS, relying on local stack files
|
# Not using Pulumi SaaS, relying on local stack files
|
||||||
if test -v PULUMI_STACK_CREATE && test ! -f Pulumi.${PULUMI_STACK}.yaml; then
|
if test -v PULUMI_STACK_CREATE && test ! -f "Pulumi.${PULUMI_STACK}.yaml"; then
|
||||||
pulumi stack init ${PULUMI_STACK}
|
pulumi stack init "${PULUMI_STACK}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $PULUMI_RUNTIME in
|
case "$PULUMI_RUNTIME" in
|
||||||
nodejs)
|
nodejs)
|
||||||
npm install
|
npm install
|
||||||
;;
|
;;
|
||||||
@ -37,4 +37,4 @@ case $PULUMI_RUNTIME in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
pulumi up --stack ${PULUMI_STACK} --yes
|
pulumi up --stack "${PULUMI_STACK}" --yes
|
||||||
|
Reference in New Issue
Block a user