new: add docker build reproducible code
This commit is contained in:
12
build.sh
Executable file
12
build.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
dsc=$(git describe HEAD --tags) || return 1
|
||||
DOCKER_BUILDKIT=1 docker build --output type=local,dest=./dist . || return 1
|
||||
if [ ! -f ./dist/opensem-prod.tar.xz ]; then
|
||||
echo "Build failed: dist/opensem-prod.tar.xz not found"
|
||||
exit 1
|
||||
fi
|
||||
mv dist/opensem-prod.tar.xz ./opensem-$dsc.tar.xz &&
|
||||
rmdir ./dist
|
||||
echo "Build successful: opensem-$dsc.tar.xz"
|
||||
Reference in New Issue
Block a user