#! /bin/bash # tmpdir="$(mktemp -d)" finish() { rm -rf "$tmpdir" } trap finish EXIT set -euo pipefail : ${GIT_DETAIL:=$(git describe --tags HEAD)} : ${GIT_SUFFIX:=$(test -n "`git status --porcelain`" && echo "-dirty" || echo "")} cd "$tmpdir" git clone --depth 1 git@github.com:holos-run/holos-infra.git cd holos-infra/saas echo '{"HolosVersion":"'${GIT_DETAIL}${GIT_SUFFIX}'"}' > userdata/holos.json holos render platform ./platform git add . git commit -m "${GIT_DETAIL}${GIT_SUFFIX} [auto]" git --no-pager show --stat git push origin HEAD echo echo "https://argocd.admin.aws2.holos.run/applications/prod-holos-app"