feat: docs and script improvements

This commit is contained in:
Andrejus Kostarevas
2023-10-10 00:41:11 +01:00
parent 4d60d3ed22
commit a6ada90a93
8 changed files with 162 additions and 61 deletions

View File

@@ -1,15 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
IMAGE=${IMAGE:-"andrejusk/dotfiles"}
tag=${TAG:-$(cat /proc/sys/kernel/random/uuid)}
docker build . \
--build-arg UUID=$tag \
--cache-from $IMAGE \
--tag $IMAGE:$tag \
--target test
docker run \
-v "$(pwd)"/logs:/home/test-user/.dotfiles/logs \
$IMAGE:$tag