blumeops/mise-tasks/dns-up
Erich Blume 074d4a1a2a Fix op item get --fields usage in mise tasks
Replace with op read to prevent multi-line secret value corruption,
matching the convention documented in CLAUDE.md and #143.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 14:51:22 -08:00

12 lines
401 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 read "op://blumeops/gandi - blumeops/pat")
export GANDI_PERSONAL_ACCESS_TOKEN
cd "$(dirname "$0")/../pulumi/gandi"
uv sync --quiet || { echo "uv sync failed — if devpi is down, run 'devpi off' and retry"; exit 1; }
pulumi stack select eblu-me
pulumi up --yes "$@"