This commit is contained in:
tuanvu
2026-02-16 17:01:30 +01:00
parent 3670516270
commit df45862a27

View File

@@ -70,10 +70,12 @@ build_docker_frontend:
dependencies:
- check_app_update
- build_frontend
rules:
- if: '$NEW_COMMIT == "true"'
script:
- source variables.env || true
- if [ "$NEW_COMMIT" != "true" ]; then
echo "No new commit, skipping build";
exit 0;
fi
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t "$IMAGE_FRONTEND" doodlestudent/front
- docker push "$IMAGE_FRONTEND"