Files
workspace-image/build.sh
T
2025-03-22 14:35:50 +08:00

8 lines
155 B
Bash

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