From ee555dea0c068f6b881518d62e7ffe2feb2d8ca6 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Thu, 15 Apr 2021 11:26:21 -0700 Subject: [PATCH] examples/jamstack: fixed logic to test the push-container with no-cache Signed-off-by: Sam Alba --- examples/jamstack/ecr_image.cue | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/examples/jamstack/ecr_image.cue b/examples/jamstack/ecr_image.cue index 81d44fe6..20963737 100644 --- a/examples/jamstack/ecr_image.cue +++ b/examples/jamstack/ecr_image.cue @@ -19,15 +19,6 @@ import ( pushTarget: "\(repository):\(tag)" - // Build the image - buildImage: op.#DockerBuild & { - context: source - if dockerfilePath != _|_ { - "dockerfilePath": dockerfilePath - } - buildArg: buildArgs - } - // Use these credentials to push ecrCreds: ecr.#Credentials & { config: awsConfig @@ -35,6 +26,7 @@ import ( } push: #up: [ + // Build the docker image op.#DockerBuild & { context: source if dockerfilePath != _|_ { @@ -42,6 +34,7 @@ import ( } buildArg: buildArgs }, + // Push the image to the registry op.#PushContainer & { ref: pushTarget },