-
-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -291,17 +291,20 @@ RUN <<EOT | |
rm -rf /source-tree/.git | ||
if [ -d /sage ]; then | ||
BASE_VERSION=\$(cat /sage/VERSION.txt) | ||
if ! cd /source-tree && .ci/retrofit-worktree.sh worktree-image /sage; then | ||
echo "retrofit-worktree.sh failed, falling back to build from scratch" | ||
if cd /source-tree && .ci/retrofit-worktree.sh worktree-image /sage; then | ||
echo "### Starting incremental build from \$BASE_VERSION" | ||
else | ||
echo "retrofit-worktree.sh failed..." | ||
rm -rf /sage | ||
mv /source-tree /sage | ||
(cd /sage && git init && git add -A && git commit --quiet --allow-empty -m "new") | ||
else | ||
echo "Starting incremental build from \$BASE_VERSION" | ||
echo "### Starting build from scratch" | ||
fi | ||
else | ||
mv /source-tree /sage | ||
git config --global user.name "ci-sage workflow" | ||
git config --global user.email "[email protected]" | ||
(cd /sage && git init && git add -A && git commit --quiet --allow-empty -m "new") | ||
echo "### Starting build from scratch" | ||
fi | ||
EOT | ||
WORKDIR /sage | ||
|