feat: docker and redis setup, tests

This commit is contained in:
2024-03-14 22:07:48 +00:00
parent 7c33e9b886
commit b06c95d9b4
4 changed files with 51 additions and 12 deletions

View File

@@ -7,10 +7,17 @@ set -euo pipefail
#
IMAGE=${IMAGE:-"andrejusk/dotfiles"}
tag=${TAG:-$(cat /proc/sys/kernel/random/uuid)}
uuid=$(
uuidgen 2> /dev/null \
|| cat /proc/sys/kernel/random/uuid 2> /dev/null \
|| echo $RANDOM
)
tag=${TAG:-"$uuid"}
echo "Building $IMAGE:$tag"
docker build . \
--build-arg UUID=$tag \
--build-arg UUID=$uuid \
--cache-from $IMAGE \
--tag $IMAGE:$tag \
--target test