Skip to content

Commit c87781b

Browse files
mads-hartmannroboquat
authored andcommitted
Only delete specific folders
1 parent 7bc5b56 commit c87781b

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

Diff for: dev/preview/workflow/preview/build.sh

+38-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,44 @@ VERSION="$(preview-name-from-branch)-dev"
2323
# We should fix the package definitions so that they don't include these files in the hash.
2424
#
2525
# For now we're simply cleaning the repository by deleting all files that are in .gitignore.
26-
git clean -dfX
26+
# The files were produced using "git clean -ndfX"
27+
components_dir="$SCRIPT_PATH/../../../../components"
28+
install_dir="$SCRIPT_PATH/../../../../install"
29+
rm -rf \
30+
"$components_dir/content-service-api/typescript/lib/" \
31+
"$components_dir/dashboard/build/" \
32+
"$components_dir/ee/db-sync/lib/" \
33+
"$components_dir/ee/payment-endpoint/lib/" \
34+
"$components_dir/gitpod-db/lib/" \
35+
"$components_dir/gitpod-messagebus/lib/" \
36+
"$components_dir/gitpod-protocol/lib/" \
37+
"$components_dir/ide-metrics-api/typescript-grpc/lib/" \
38+
"$components_dir/ide-metrics-api/typescript-grpcweb/lib/" \
39+
"$components_dir/ide-service-api/typescript/lib/" \
40+
"$components_dir/image-builder-api/typescript/lib/" \
41+
"$components_dir/licensor/typescript/build/" \
42+
"$components_dir/licensor/typescript/ee/lib/" \
43+
"$components_dir/licensor/typescript/lib/" \
44+
"$components_dir/local-app-api/typescript-grpcweb/lib/" \
45+
"$components_dir/public-api/typescript/lib/" \
46+
"$components_dir/server/dist/" \
47+
"$components_dir/supervisor-api/typescript-grpc/lib/" \
48+
"$components_dir/supervisor-api/typescript-grpcweb/lib/" \
49+
"$components_dir/supervisor/frontend/dist/" \
50+
"$components_dir/supervisor/frontend/lib/" \
51+
"$components_dir/usage-api/typescript/lib/" \
52+
"$components_dir/ws-daemon-api/typescript/lib/" \
53+
"$components_dir/ws-manager-api/typescript/lib/" \
54+
"$components_dir/ws-manager-bridge-api/typescript/lib/" \
55+
"$components_dir/ws-manager-bridge/dist/" \
56+
"$install_dir/installer/third_party/charts/docker-registry/Chart.lock" \
57+
"$install_dir/installer/third_party/charts/docker-registry/charts/" \
58+
"$install_dir/installer/third_party/charts/minio/Chart.lock" \
59+
"$install_dir/installer/third_party/charts/minio/charts/" \
60+
"$install_dir/installer/third_party/charts/mysql/Chart.lock" \
61+
"$install_dir/installer/third_party/charts/mysql/charts/" \
62+
"$install_dir/installer/third_party/charts/rabbitmq/Chart.lock" \
63+
"$install_dir/installer/third_party/charts/rabbitmq/charts/"
2764

2865
leeway build \
2966
-DSEGMENT_IO_TOKEN="$(kubectl --context=dev -n werft get secret self-hosted -o jsonpath='{.data.segmentIOToken}' | base64 -d)" \

0 commit comments

Comments
 (0)