21 lines
606 B
Bash
21 lines
606 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Required tools
|
|
apk add --no-cache git bash curl yq jq
|
|
|
|
# Repo Config
|
|
SANDBOX_REPO_URL="https://git.dvirlabs.com/dvirlabs/sandbox.git"
|
|
INFRA_REPO_URL="https://${GIT_TOKEN}@git.dvirlabs.com/dvirlabs/infra.git"
|
|
|
|
SANDBOX_CLONE=".tmp-repos/sandbox"
|
|
INFRA_CLONE=".tmp-repos/infra"
|
|
|
|
GENERATED_FILE="$(pwd)/generated-values/cloudflared-values.yaml"
|
|
ORIGINAL_FILE="$INFRA_CLONE/manifests/cloudflared/values.yaml"
|
|
MERGED_FILE="$INFRA_CLONE/manifests/cloudflared/values.yaml"
|
|
|
|
CLOUDFLARE_API="https://api.cloudflare.com/client/v4"
|
|
TARGET="b50bbf48-0a2f-47ce-b73e-336b6718318b.cfargotunnel.com"
|