added tests for push-container with login
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
package testing
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"dagger.io/dagger/op"
|
||||
"dagger.io/alpine"
|
||||
)
|
||||
|
||||
registry: {
|
||||
username: string
|
||||
secret: dagger.#Secret
|
||||
}
|
||||
|
||||
TestPushContainer: {
|
||||
// Generate a random number
|
||||
random: {
|
||||
@@ -24,6 +30,9 @@ TestPushContainer: {
|
||||
push: {
|
||||
ref: "daggerio/ci-test:\(random)"
|
||||
#up: [
|
||||
op.#DockerLogin & {
|
||||
registry
|
||||
},
|
||||
op.#WriteFile & {
|
||||
content: random
|
||||
dest: "/rand"
|
||||
|
Reference in New Issue
Block a user