From fddd5da9f7a958ef882bb374dfdceed5572621f6 Mon Sep 17 00:00:00 2001 From: Thomas Neil James Shadwell Date: Thu, 26 Dec 2024 18:33:52 +0000 Subject: [PATCH] Allow async repository url to pulumi image resource. --- ts/pulumi/lib/oci/oci_image.tmpl.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ts/pulumi/lib/oci/oci_image.tmpl.ts b/ts/pulumi/lib/oci/oci_image.tmpl.ts index afd32a41bc..d441da2886 100644 --- a/ts/pulumi/lib/oci/oci_image.tmpl.ts +++ b/ts/pulumi/lib/oci/oci_image.tmpl.ts @@ -1,9 +1,9 @@ import { local } from '@pulumi/command'; -import { ComponentResource, ComponentResourceOptions } from "@pulumi/pulumi"; +import { ComponentResource, ComponentResourceOptions, Input, output } from "@pulumi/pulumi"; export interface Args { - repository: string + repository: Input } export class __ClassName extends ComponentResource { @@ -15,11 +15,12 @@ export class __ClassName extends ComponentResource { super('__TYPE', name, args, opts); const upload = new local.Command(`${name}_push`, { - create: [ + create: + output(args.repository).apply(repository => [ "__PUSH_BIN", "--repository", - args.repository, - ].join(" ") + repository, + ].join(" ")) }, { parent: this })