-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·23 lines (16 loc) · 729 Bytes
/
build.sh
File metadata and controls
executable file
·23 lines (16 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"