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>
15 lines
580 B
Bash
Executable file
15 lines
580 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#MISE description="Preview tailnet changes with Pulumi"
|
|
|
|
set -euo pipefail
|
|
|
|
TAILSCALE_OAUTH_CLIENT_ID=$(op read "op://blumeops/tailscale - blumeops/client_id")
|
|
export TAILSCALE_OAUTH_CLIENT_ID
|
|
TAILSCALE_OAUTH_CLIENT_SECRET=$(op read "op://blumeops/tailscale - blumeops/client_secret")
|
|
export TAILSCALE_OAUTH_CLIENT_SECRET
|
|
export TAILSCALE_TAILNET="tail8d86e.ts.net"
|
|
|
|
cd "$(dirname "$0")/../pulumi/tailscale"
|
|
uv sync --quiet || { echo "uv sync failed — if devpi is down, run 'devpi off' and retry"; exit 1; }
|
|
pulumi stack select tail8d86e
|
|
pulumi preview "$@"
|