fix: write both version files for deployment
TaxBaik CI/CD / build-and-deploy (push) Failing after 3m19s

This commit is contained in:
2026-07-01 13:28:48 +09:00
parent 1f628b49a8
commit 64de7d2304
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -83,6 +83,7 @@ jobs:
BUILD_TIME=$(date -u +'%Y-%m-%d %H:%M:%S UTC')
mkdir -p ./publish/wwwroot
printf '{\n "version": "%s",\n "built": "%s"\n}\n' "$COMMIT_HASH" "$BUILD_TIME" > ./publish/wwwroot/version.json
printf 'Version: %s\nBuilt: %s\n' "$COMMIT_HASH" "$BUILD_TIME" > ./publish/wwwroot/version.txt
echo "✓ Build: $COMMIT_HASH @ $BUILD_TIME"
- name: Setup SSH
+1 -1
View File
@@ -43,4 +43,4 @@ ps aux | grep TaxBaik.Web | grep -v grep && echo "✓ Web started" || echo "✗
echo ""
echo "===== ✅ 배포 완료 ====="
cat "$DEPLOY_HOME/taxbaik_active/wwwroot/version.txt" 2>/dev/null || echo "Version file not found"
cat "$DEPLOY_HOME/taxbaik_active/wwwroot/version.txt" 2>/dev/null || cat "$DEPLOY_HOME/taxbaik_active/wwwroot/version.json" 2>/dev/null || echo "Version file not found"