examples/jamstack: implemented image_ref
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
parent
6818659c14
commit
7d76a87ae2
@ -25,21 +25,26 @@ import (
|
|||||||
target: pushTarget
|
target: pushTarget
|
||||||
}
|
}
|
||||||
|
|
||||||
push: #up: [
|
ref: {
|
||||||
// Build the docker image
|
string
|
||||||
op.#DockerBuild & {
|
|
||||||
context: source
|
|
||||||
if dockerfilePath != _|_ {
|
|
||||||
"dockerfilePath": dockerfilePath
|
|
||||||
}
|
|
||||||
buildArg: buildArgs
|
|
||||||
},
|
|
||||||
// Push the image to the registry
|
|
||||||
op.#PushContainer & {
|
|
||||||
ref: pushTarget
|
|
||||||
},
|
|
||||||
]
|
|
||||||
|
|
||||||
// FIXME: ref does not include the sha256: https://github.com/dagger/dagger/issues/303
|
#up: [
|
||||||
ref: pushTarget
|
// Build the docker image
|
||||||
|
op.#DockerBuild & {
|
||||||
|
context: source
|
||||||
|
if dockerfilePath != _|_ {
|
||||||
|
"dockerfilePath": dockerfilePath
|
||||||
|
}
|
||||||
|
buildArg: buildArgs
|
||||||
|
},
|
||||||
|
// Push the image to the registry
|
||||||
|
op.#PushContainer & {
|
||||||
|
ref: pushTarget
|
||||||
|
},
|
||||||
|
op.#Export & {
|
||||||
|
source: "/dagger/image_ref"
|
||||||
|
format: "string"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user