Merge pull request #426 from TomChv/tests-examples-docker

Add tests for docker example
This commit is contained in:
Andrea Luzzardi
2021-05-14 12:23:12 -07:00
committed by GitHub
12 changed files with 216 additions and 3 deletions

View File

@@ -27,7 +27,20 @@ import (
]
}
// FIXME: #Push
// Push a docker image
#Push: {
// Remote ref (example: "index.docker.io/alpine:latest")
ref: string
// Image
source: dagger.#Artifact
#up: [
op.#Load & {from: source},
op.#PushContainer & {"ref": ref},
]
}
// FIXME: #Run
// Build a Docker image from the provided Dockerfile contents