examples/jamstack: implemented image_ref

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba 2021-04-16 16:20:27 -07:00
parent 6818659c14
commit 7d76a87ae2

View File

@ -25,7 +25,10 @@ import (
target: pushTarget target: pushTarget
} }
push: #up: [ ref: {
string
#up: [
// Build the docker image // Build the docker image
op.#DockerBuild & { op.#DockerBuild & {
context: source context: source
@ -38,8 +41,10 @@ import (
op.#PushContainer & { op.#PushContainer & {
ref: pushTarget ref: pushTarget
}, },
op.#Export & {
source: "/dagger/image_ref"
format: "string"
},
] ]
}
// FIXME: ref does not include the sha256: https://github.com/dagger/dagger/issues/303
ref: pushTarget
} }