examples/jamstack: fixed logic to test the push-container with no-cache
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
parent
075fbbf3d5
commit
ee555dea0c
@ -19,15 +19,6 @@ import (
|
|||||||
|
|
||||||
pushTarget: "\(repository):\(tag)"
|
pushTarget: "\(repository):\(tag)"
|
||||||
|
|
||||||
// Build the image
|
|
||||||
buildImage: op.#DockerBuild & {
|
|
||||||
context: source
|
|
||||||
if dockerfilePath != _|_ {
|
|
||||||
"dockerfilePath": dockerfilePath
|
|
||||||
}
|
|
||||||
buildArg: buildArgs
|
|
||||||
}
|
|
||||||
|
|
||||||
// Use these credentials to push
|
// Use these credentials to push
|
||||||
ecrCreds: ecr.#Credentials & {
|
ecrCreds: ecr.#Credentials & {
|
||||||
config: awsConfig
|
config: awsConfig
|
||||||
@ -35,6 +26,7 @@ import (
|
|||||||
}
|
}
|
||||||
|
|
||||||
push: #up: [
|
push: #up: [
|
||||||
|
// Build the docker image
|
||||||
op.#DockerBuild & {
|
op.#DockerBuild & {
|
||||||
context: source
|
context: source
|
||||||
if dockerfilePath != _|_ {
|
if dockerfilePath != _|_ {
|
||||||
@ -42,6 +34,7 @@ import (
|
|||||||
}
|
}
|
||||||
buildArg: buildArgs
|
buildArg: buildArgs
|
||||||
},
|
},
|
||||||
|
// Push the image to the registry
|
||||||
op.#PushContainer & {
|
op.#PushContainer & {
|
||||||
ref: pushTarget
|
ref: pushTarget
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user