2024-09-09 13:46:50 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2025-02-07 16:05:53 +01:00
|
|
|
docker run \
|
|
|
|
--rm \
|
|
|
|
-ti \
|
2025-03-27 17:15:59 +01:00
|
|
|
--pull=always \
|
2025-02-07 16:05:53 +01:00
|
|
|
--platform linux/arm64 \
|
|
|
|
--workdir=/srv/workspace \
|
|
|
|
--mount type=bind,source=.,target=/srv/workspace \
|
|
|
|
-e AWS_ACCESS_KEY=$(rbw get -f username "CloudFlare TFState") \
|
|
|
|
-e AWS_SECRET_KEY=$(rbw get "CloudFlare TFState") \
|
2025-03-27 17:15:59 +01:00
|
|
|
-e ARM_CLIENT_ID=$(rbw get -f username "Azure Infrastructure App Registration") \
|
|
|
|
-e ARM_CLIENT_SECRET=$(rbw get "Azure Infrastructure App Registration") \
|
|
|
|
-e ARM_TENANT_ID=$(rbw get -f TenantID "Azure Infrastructure App Registration") \
|
|
|
|
-e ARM_SUBSCRIPTION_ID=$(rbw get -f SubscriptionID "Azure Infrastructure App Registration") \
|
|
|
|
-e HCLOUD_TOKEN="$(rbw get "HCloud API")" \
|
|
|
|
-e CLOUDFLARE_API_TOKEN="$(rbw get -f "DNS API Token" "CloudFlare")" \
|
2025-02-07 16:05:53 +01:00
|
|
|
ghcr.io/opentofu/opentofu:latest \
|
|
|
|
$@
|