fix: write both version files for deployment
TaxBaik CI/CD / build-and-deploy (push) Failing after 3m19s
TaxBaik CI/CD / build-and-deploy (push) Failing after 3m19s
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user