support buildx

This commit is contained in:
iceBear67
2025-03-22 14:35:50 +08:00
parent 96fcb9529a
commit 19940474d1
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
build.sh
+7
View File
@@ -0,0 +1,7 @@
GIT_REV=$(git log --pretty=format:'%h' -n 1)
docker images | grep $GIT_REV
if test $? == 0; then
exit
fi
docker buildx build . --tag workspace:$GIT_REV