diff --git a/.gitea/workflows/build-image.yml b/.gitea/workflows/build-image.yml index 14173ff7..3d8dc98e 100644 --- a/.gitea/workflows/build-image.yml +++ b/.gitea/workflows/build-image.yml @@ -881,6 +881,13 @@ jobs: } echo "⏳ Waiting for services to start..." + sleep 15 + + # Force containers to pull latest code by restarting staging-app + echo "🔄 Restarting staging-app to pull latest code from Git..." + docker compose restart staging-app || echo "⚠️ Failed to restart staging-app" + + echo "⏳ Waiting for Git sync to complete..." sleep 10 echo "📊 Container status:" diff --git a/.gitea/workflows/deploy-staging.yml b/.gitea/workflows/deploy-staging.yml index a45b9535..eb31bccd 100644 --- a/.gitea/workflows/deploy-staging.yml +++ b/.gitea/workflows/deploy-staging.yml @@ -161,6 +161,13 @@ jobs: } echo "⏳ Waiting for services to start..." + sleep 15 + + # Force containers to pull latest code by restarting staging-app + echo "🔄 Restarting staging-app to pull latest code from Git..." + docker compose restart staging-app || echo "⚠️ Failed to restart staging-app" + + echo "⏳ Waiting for Git sync to complete..." sleep 10 echo "📊 Container status:"