ci: add dokploy token fallback
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user