Spaces:
Sleeping
Sleeping
Georg
commited on
Commit
·
297bffe
1
Parent(s):
7d2f40b
Prepare job build context
Browse files
deploy.sh
CHANGED
|
@@ -101,8 +101,12 @@ fi
|
|
| 101 |
if [[ -n $(git status -s) ]]; then
|
| 102 |
echo "Committing changes for job context..."
|
| 103 |
git add Dockerfile Dockerfile.base requirements.txt deploy.sh app.py client.py estimator.py masks.py scripts/run_hf_image_job.py download_weights.py
|
| 104 |
-
git
|
| 105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
fi
|
| 107 |
|
| 108 |
JOB_REF=""
|
|
|
|
| 101 |
if [[ -n $(git status -s) ]]; then
|
| 102 |
echo "Committing changes for job context..."
|
| 103 |
git add Dockerfile Dockerfile.base requirements.txt deploy.sh app.py client.py estimator.py masks.py scripts/run_hf_image_job.py download_weights.py
|
| 104 |
+
if git diff --cached --quiet; then
|
| 105 |
+
echo "No staged changes for job context"
|
| 106 |
+
else
|
| 107 |
+
git commit -m "Prepare job build context"
|
| 108 |
+
echo "✓ Job context committed"
|
| 109 |
+
fi
|
| 110 |
fi
|
| 111 |
|
| 112 |
JOB_REF=""
|