Integrate Doppler secrets

This commit is contained in:
2026-05-04 11:19:06 +01:00
parent ee1d674713
commit 83e9cb2edc
6 changed files with 90 additions and 10 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ k8s_yaml('./k8s/site-analyzer.yaml')
local_resource(
'webshare-secret',
cmd='set -a; [ ! -f .env ] || . ./.env; set +a; if [ -n "$WEBSHARE_API_KEY" ] && [ -n "$WEBSHARE_PROXY_USERNAME" ] && [ -n "$WEBSHARE_PROXY_PASSWORD" ]; then kubectl create secret generic webshare-api --from-literal=api-key="$WEBSHARE_API_KEY" --from-literal=proxy-username="$WEBSHARE_PROXY_USERNAME" --from-literal=proxy-password="$WEBSHARE_PROXY_PASSWORD" --dry-run=client -o yaml | kubectl apply -f -; else echo "Webshare runtime config missing; country scraping unavailable"; fi',
cmd='doppler run -- bash ./scripts/apply-webshare-secret',
labels=['utility'],
)