blumeops/mise-tasks/dns-up
Erich Blume 3f88dea9d0 Add explicit stack selection to Pulumi mise tasks
Prevents "no stack selected" errors when running from a fresh
environment or after stack state is cleared.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 01:04:32 -08:00

11 lines
350 B
Bash
Executable file

#!/usr/bin/env bash
#MISE description="Apply DNS changes to eblu.me with Pulumi"
set -euo pipefail
GANDI_PERSONAL_ACCESS_TOKEN=$(op --vault vg6xf6vvfmoh5hqjjhlhbeoaie item get mco6ka3dc3rmw7zkg2dhia5d2m --fields pat --reveal)
export GANDI_PERSONAL_ACCESS_TOKEN
cd "$(dirname "$0")/../pulumi/gandi"
pulumi stack select eblu-me
pulumi up --yes "$@"