Rename field according to @shykes review

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau
2021-06-28 14:48:49 +02:00
parent 67a982eb0f
commit d10f2a49a5
4 changed files with 20 additions and 16 deletions

View File

@@ -30,8 +30,8 @@ import (
// Push a docker image to a remote registry
#Push: {
// Remote name (example: "index.docker.io/alpine:latest")
name: string @dagger(input)
// Remote target (example: "index.docker.io/alpine:latest")
target: string @dagger(input)
// Image source
source: dagger.#Artifact @dagger(input)
@@ -50,13 +50,13 @@ import (
if auth != _|_ {
op.#DockerLogin & {
target: name
"target": target
username: auth.username
secret: auth.secret
}
},
op.#PushContainer & {ref: name},
op.#PushContainer & {ref: target},
op.#Subdir & {dir: "/dagger"},
]