ci: add dokploy token fallback
All checks were successful
CI/CD Pipeline / Quality Gate (push) Successful in 21s
CI/CD Pipeline / Build and Push Images (push) Successful in 6s
CI/CD Pipeline / Internal Notify (push) Successful in 1s
CI/CD Pipeline / Deploy Dev in Dokploy (push) Successful in 1s

This commit is contained in:
2026-04-28 23:49:31 +02:00
parent 7e961f18fa
commit db824bf4fa
3 changed files with 7 additions and 0 deletions

View File

@@ -4,6 +4,11 @@ set -euo pipefail
TARGET="${1:-${DOKPLOY_TARGET:-all}}"
SUMMARY_FILE="${GITHUB_STEP_SUMMARY:-/dev/stdout}"
DOKPLOY_API_URL="${DOKPLOY_API_URL:-https://deploy.dev.nii-ecos.ru/api}"
DOKPLOY_API_TOKEN="${DOKPLOY_API_TOKEN:-${DOKPLOY_API_TOKEN_FALLBACK:-}}"
if [ -n "${DOKPLOY_API_TOKEN}" ]; then
echo "::add-mask::${DOKPLOY_API_TOKEN}" || true
fi
branch_tag() {
local branch branch_tag sha_short