-
-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Base docker build commands on their target docs version
These commands are meant to be run on our servers to build the different releases. Instead of manually adjusting them at every new release, let's automatize using the target release as variable (cherry picked from commit 0cc63c0)
- Loading branch information
Showing
4 changed files
with
28 additions
and
12 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
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
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 |
---|---|---|
|
@@ -23,6 +23,14 @@ git stash drop | |
# get latest version | ||
git pull | ||
|
||
# Return release number from branch name e.g. master, 3.34 | ||
TARGETBRANCH=`git branch --show-current | sed 's,release_,,g'` | ||
TARGETREPO="QGIS-Documentation" | ||
|
||
if [[ "$TARGETBRANCH" != "master" ]]; then \ | ||
TARGETREPO=$TARGETREPO-$TARGETBRANCH | ||
fi; | ||
|
||
# only languages which have translations in transifex | ||
#: ${langs:=en ca da de es fa fi fr gl hu id it ja km_KH ko lt nl pl pt_BR pt_PT ro tr ru uk zh-Hans zh-Hant} | ||
: ${langs:=en} | ||
|
@@ -42,9 +50,9 @@ for l in $langs | |
#time rsync -hvrzc --delete --progress build/pdf /var/www/qgisdata/QGIS-Documentation-3.40/live/html | ||
#time rsync -hvrzc --delete --progress build/zip /var/www/qgisdata/QGIS-Documentation-3.40/live/html | ||
# 20220317: local sync to new www2 | ||
time rsync -hvrzc --delete --progress build/html/$l [email protected]:/var/www/qgisdata/QGIS-Documentation-3.40/live/html | ||
time rsync -hvrzc --delete --progress build/pdf [email protected]:/var/www/qgisdata/QGIS-Documentation-3.40/live/html | ||
time rsync -hvrzc --delete --progress build/zip [email protected]:/var/www/qgisdata/QGIS-Documentation-3.40/live/html | ||
time rsync -hvrzc --delete --progress build/html/$l [email protected]:/var/www/qgisdata/$TARGETREPO/live/html | ||
time rsync -hvrzc --delete --progress build/pdf [email protected]:/var/www/qgisdata/$TARGETREPO/live/html | ||
time rsync -hvrzc --delete --progress build/zip [email protected]:/var/www/qgisdata/$TARGETREPO/live/html | ||
else | ||
echo "Build FAILED: not syncing to web"; | ||
fi | ||
|
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