You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added verification for the existence of package-lock.json in both the build-and-push workflow and Dockerfile, ensuring reproducible builds.
- Implemented retry logic for npm ci commands in the Dockerfile to improve reliability during dependency installation.
- Added checks to verify critical dependencies are present in the built Docker image, enhancing the robustness of the build process.
if [ "$APP_VERSION" != "$EXPECTED_VERSION" ]; then
99
+
echo "❌ ERROR: APP_VERSION mismatch!"
100
+
echo " Expected: ${EXPECTED_VERSION}"
101
+
echo " Found: ${APP_VERSION:-not set}"
102
+
exit 1
103
+
fi
104
+
echo "✅ APP_VERSION verified: ${APP_VERSION}"
105
+
106
+
# Verify node_modules exists (quick check)
107
+
if ! docker run --rm --platform linux/amd64 --entrypoint /bin/sh ${IMAGE_TAG} -c "test -d /app/node_modules && test -f /app/node_modules/.bin/prisma && test -d /app/node_modules/fastify" 2>/dev/null; then
108
+
echo "❌ ERROR: Critical dependencies missing in image!"
0 commit comments