-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename pbuild.sh script to build.sh (#337)
* Delete parallel-build code, no longer needed * Rename pbuild.sh references to build.sh in README * Rename pbuild.sh script to build.sh
- Loading branch information
Showing
3 changed files
with
31 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# These are arrays; see https://www.gnu.org/software/bash/manual/html_node/Arrays.html | ||
DBMODEL_VERSIONS=(7000072) | ||
HISTORICAL_VERSIONS=(7000068 7000069 7000070) | ||
|
||
# Clean up any previous builds | ||
dotnet clean LfMerge.sln || true | ||
[ -d tarball ] && rm -rf tarball | ||
|
||
# Set MsBuildVersion environment variable (and a couple others) to use in build-and-test.sh | ||
. docker/scripts/get-version-number.sh | ||
|
||
# Run build once for each DbVersion | ||
for DbVersion in ${DBMODEL_VERSIONS[@]}; do | ||
docker/scripts/build-and-test.sh ${DbVersion} | ||
done | ||
|
||
time docker build -t ghcr.io/sillsdev/lfmerge:${MsBuildVersion:-latest} -f Dockerfile.finalresult . | ||
|
||
echo "Successfully built ghcr.io/sillsdev/lfmerge:${MsBuildVersion:-latest} image" |