stdlib/ecr / jamstack: ported to new syntax
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
@@ -17,12 +17,9 @@ import (
|
||||
awsConfig: aws.#Config
|
||||
buildArgs: [string]: string
|
||||
|
||||
pushTarget: "\(repository):\(tag)"
|
||||
|
||||
// Use these credentials to push
|
||||
ecrCreds: ecr.#Credentials & {
|
||||
config: awsConfig
|
||||
target: pushTarget
|
||||
}
|
||||
|
||||
ref: {
|
||||
@@ -37,9 +34,16 @@ import (
|
||||
}
|
||||
buildArg: buildArgs
|
||||
},
|
||||
// Login to Registry
|
||||
op.#DockerLogin & {
|
||||
target: repository
|
||||
username: ecrCreds.username
|
||||
secret: ecrCreds.secret
|
||||
},
|
||||
// Push the image to the registry
|
||||
op.#PushContainer & {
|
||||
ref: pushTarget
|
||||
ref: "\(repository):\(tag)"
|
||||
auth: ecrCreds.auth
|
||||
},
|
||||
op.#Export & {
|
||||
source: "/dagger/image_ref"
|
||||
|
Reference in New Issue
Block a user