Add #Push definition and tests

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau
2021-05-13 18:52:22 +02:00
parent 24aee99ba9
commit 8ce8e8e01f
8 changed files with 132 additions and 42 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