fix: test suite passing

This commit is contained in:
Andrejus Kostarevas
2021-07-23 17:09:00 +01:00
parent a1d4096406
commit f371a380ac
7 changed files with 288 additions and 164 deletions

View File

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