Move private repository tests + implement env helper function

Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
This commit is contained in:
Guillaume de Rouville
2021-08-26 12:14:17 +02:00
parent a987d1dc34
commit 3b0e3f6919
8 changed files with 42 additions and 5 deletions

View File

@@ -26,6 +26,13 @@ dagger_new_with_plan() {
"$DAGGER" new "$name"
}
dagger_new_with_env() {
local sourcePlan="$1"
"$DAGGER" init -w "$DAGGER_WORKSPACE"
rsync -av "$sourcePlan"/ "$DAGGER_WORKSPACE"
}
# dagger helper to execute the right binary
dagger() {
"${DAGGER}" "$@"