Update deploy.yml
Some checks failed
ci / Lint & typecheck (push) Successful in 28s
ci / Unit tests (push) Successful in 1m3s
deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
febux 2026-09-14 02:13:11 +03:00
parent a7e73cd129
commit 942dc531a8

View file

@ -73,6 +73,10 @@ jobs:
[ -n "$NOMAD_TOKEN" ] || { echo "NOMAD_TOKEN secret is empty"; exit 1; }
[ -n "$NOMAD_CACERT" ] || { echo "NOMAD_CACERT secret is empty"; exit 1; }
# strip CR/LF/whitespace introduced when pasting into Forgejo UI
NOMAD_TOKEN=$(printf '%s' "$NOMAD_TOKEN" | tr -d '\r\n[:space:]')
NOMAD_ADDR_HOST=$(printf '%s' "$NOMAD_ADDR_HOST" | tr -d '\r\n[:space:]')
mkdir -p .ci-tls
printf '%s\n' "$NOMAD_CACERT" > .ci-tls/ca.crt