From 4ae55fd3c8fa765f25cf478cbc3aa706bd1bd9ae Mon Sep 17 00:00:00 2001 From: root Date: Wed, 13 May 2026 02:48:54 +0000 Subject: [PATCH] chore(deploy): remove debug logging from deployment script Removed debug logging that was added to troubleshoot the commit hash issue. The issue has been fixed by changing docker-compose.yml to use pre-built images. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- deploy-invttrdg.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/deploy-invttrdg.sh b/deploy-invttrdg.sh index c7e6efb..f15aa9f 100755 --- a/deploy-invttrdg.sh +++ b/deploy-invttrdg.sh @@ -261,15 +261,12 @@ BYTELYST_COMMIT_MESSAGE= # Change to repo directory to collect correct git metadata cd "$REPO_DIR" -log "Collecting git metadata from: $(pwd)" BYTELYST_COMMIT_SHA=$(git rev-parse --short HEAD 2>/dev/null || echo unknown) BYTELYST_COMMIT_SHA_FULL=$(git rev-parse HEAD 2>/dev/null || echo unknown) BYTELYST_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo unknown) BYTELYST_BUILT_AT=$(date -u +%Y-%m-%dT%H:%M:%SZ) BYTELYST_COMMIT_AUTHOR=$(git log -1 --pretty=format:'%an' 2>/dev/null || echo unknown) BYTELYST_COMMIT_MESSAGE=$(git log -1 --pretty=format:'%s' 2>/dev/null | head -c 200 || echo unknown) -log "Collected commit SHA: $BYTELYST_COMMIT_SHA" -log "Collected commit message: $BYTELYST_COMMIT_MESSAGE" cd "$SCRIPT_DIR" build_image() { @@ -280,9 +277,7 @@ build_image() { cache_flag="--no-cache" fi # Build from repo directory to ensure correct source code is used - log " Building from directory: $REPO_DIR" - log " Commit SHA being passed: ${BYTELYST_COMMIT_SHA}" - (cd "$REPO_DIR" && log " Current git HEAD: $(git rev-parse --short HEAD)" && docker build --network host $cache_flag \ + (cd "$REPO_DIR" && docker build --network host $cache_flag \ --build-arg "GITEA_NPM_TOKEN=${GITEA_NPM_TOKEN}" \ --build-arg "BYTELYST_COMMIT_SHA=${BYTELYST_COMMIT_SHA}" \ --build-arg "BYTELYST_COMMIT_SHA_FULL=${BYTELYST_COMMIT_SHA_FULL}" \