Add test on op.#FetchGit for private repository

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau
2021-08-25 17:41:43 +02:00
committed by Guillaume de Rouville
parent d7194f161d
commit a987d1dc34
4 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package op
import (
"alpha.dagger.io/os"
"alpha.dagger.io/dagger"
"alpha.dagger.io/dagger/op"
)
// Github PAT
TestPAT: dagger.#Input & {dagger.#Secret}
TestRepo: #up: [op.#FetchGit & {
remote: "https://github.com/dagger/dagger.git"
ref: "main"
authTokenSecret: TestPAT
}]
TestContent: os.#Container & {
always: true
command: "ls -l /input/repo | grep 'universe -> stdlib'"
mount: "/input/repo": from: TestRepo
}