Compare commits

..

1 Commits

Author SHA1 Message Date
pulumi-renovate[bot]
eb749f8483 Update pulumi/auth-actions action to v2 2026-05-30 08:03:19 +00:00
5 changed files with 14 additions and 27 deletions

View File

@@ -339,7 +339,7 @@ jobs:
run: make install_${{ matrix.language}}_sdk run: make install_${{ matrix.language}}_sdk
- name: Generate Pulumi Access Token - name: Generate Pulumi Access Token
id: generate_pulumi_token id: generate_pulumi_token
uses: pulumi/auth-actions@1c89817aab0c66407723cdef72b05266e7376640 # v1.0.1 uses: pulumi/auth-actions@141415910c3beb54e03b48e9057c204c97b956f2 # v2.1.0
with: with:
organization: pulumi organization: pulumi
requested-token-type: urn:pulumi:token-type:access_token:organization requested-token-type: urn:pulumi:token-type:access_token:organization

View File

@@ -295,7 +295,7 @@ jobs:
run: make install_${{ matrix.language}}_sdk run: make install_${{ matrix.language}}_sdk
- name: Generate Pulumi Access Token - name: Generate Pulumi Access Token
id: generate_pulumi_token id: generate_pulumi_token
uses: pulumi/auth-actions@1c89817aab0c66407723cdef72b05266e7376640 # v1.0.1 uses: pulumi/auth-actions@141415910c3beb54e03b48e9057c204c97b956f2 # v2.1.0
with: with:
organization: pulumi organization: pulumi
requested-token-type: urn:pulumi:token-type:access_token:organization requested-token-type: urn:pulumi:token-type:access_token:organization

View File

@@ -295,7 +295,7 @@ jobs:
run: make install_${{ matrix.language}}_sdk run: make install_${{ matrix.language}}_sdk
- name: Generate Pulumi Access Token - name: Generate Pulumi Access Token
id: generate_pulumi_token id: generate_pulumi_token
uses: pulumi/auth-actions@1c89817aab0c66407723cdef72b05266e7376640 # v1.0.1 uses: pulumi/auth-actions@141415910c3beb54e03b48e9057c204c97b956f2 # v2.1.0
with: with:
organization: pulumi organization: pulumi
requested-token-type: urn:pulumi:token-type:access_token:organization requested-token-type: urn:pulumi:token-type:access_token:organization

View File

@@ -446,7 +446,7 @@ jobs:
run: make install_${{ matrix.language}}_sdk run: make install_${{ matrix.language}}_sdk
- name: Generate Pulumi Access Token - name: Generate Pulumi Access Token
id: generate_pulumi_token id: generate_pulumi_token
uses: pulumi/auth-actions@1c89817aab0c66407723cdef72b05266e7376640 # v1.0.1 uses: pulumi/auth-actions@141415910c3beb54e03b48e9057c204c97b956f2 # v2.1.0
with: with:
organization: pulumi organization: pulumi
requested-token-type: urn:pulumi:token-type:access_token:organization requested-token-type: urn:pulumi:token-type:access_token:organization

View File

@@ -68,8 +68,7 @@ type Image struct {
// Annotate provides a description of the Image resource. // Annotate provides a description of the Image resource.
func (i *Image) Annotate(a infer.Annotator) { func (i *Image) Annotate(a infer.Annotator) {
a.Describe( a.Describe(&i, dedent(`
&i, dedent(`
A Docker image built using buildx -- Docker's interface to the improved A Docker image built using buildx -- Docker's interface to the improved
BuildKit backend. BuildKit backend.
@@ -303,8 +302,7 @@ type ImageState struct {
func (is *ImageState) Annotate(a infer.Annotator) { func (is *ImageState) Annotate(a infer.Annotator) {
is.ImageArgs.Annotate(a) is.ImageArgs.Annotate(a)
a.Describe(&is.Digest, dedent( a.Describe(&is.Digest, dedent(`
`
A SHA256 digest of the image if it was exported to a registry or A SHA256 digest of the image if it was exported to a registry or
elsewhere. elsewhere.
@@ -436,13 +434,7 @@ func (ia *ImageArgs) normalize(preview bool) ImageArgs {
func (ia *ImageArgs) buildable() bool { func (ia *ImageArgs) buildable() bool {
// We can build the given inputs if filtering unknowns is a no-op. // We can build the given inputs if filtering unknowns is a no-op.
filtered := ia.normalize(true) filtered := ia.normalize(true)
equal := reflect.DeepEqual(ia, &filtered) return reflect.DeepEqual(ia, &filtered)
if !equal {
fmt.Printf("Not buildable:\n\tArgs => %v\n\tNormalize => %v", ia, &filtered)
}
return equal
} }
// isExported returns true if the args include a registry export. // isExported returns true if the args include a registry export.
@@ -507,15 +499,13 @@ func (ia ImageArgs) toBuild(
if len(ia.Exports) == 0 && !ia.Push && !ia.Load { if len(ia.Exports) == 0 && !ia.Push && !ia.Load {
provider.GetLogger(ctx).Warning( provider.GetLogger(ctx).Warning(
"No exports were specified so the build will only remain in the local build cache. " + "No exports were specified so the build will only remain in the local build cache. " +
"Use `push` to upload the image to a registry, or silence this warning with a `cacheonly` export.", "Use `push` to upload the image to a registry, or silence this warning with a `cacheonly` export.")
)
} }
if len(opts.Platforms) > 1 && len(opts.CacheTo) > 0 { if len(opts.Platforms) > 1 && len(opts.CacheTo) > 0 {
provider.GetLogger(ctx).Warning( provider.GetLogger(ctx).Warning(
"Caching doesn't work reliably with multi-platform builds (https://github.com/docker/buildx/discussions/1382). " + "Caching doesn't work reliably with multi-platform builds (https://github.com/docker/buildx/discussions/1382). " +
"Instead, perform one cached build per platform and create an Index to join them all together.", "Instead, perform one cached build per platform and create an Index to join them all together.")
)
} }
return &build{ return &build{
@@ -533,8 +523,7 @@ func (ia *ImageArgs) validate(supportsMultipleExports, preview bool) (controller
if !supportsMultipleExports { if !supportsMultipleExports {
if len(ia.Exports) > 1 { if len(ia.Exports) > 1 {
multierr = errors.Join( multierr = errors.Join(multierr,
multierr,
newCheckFailure(errors.New("multiple exports require a v0.13 buildkit daemon or newer"), "exports"), newCheckFailure(errors.New("multiple exports require a v0.13 buildkit daemon or newer"), "exports"),
) )
} }
@@ -548,8 +537,7 @@ func (ia *ImageArgs) validate(supportsMultipleExports, preview bool) (controller
) )
} }
if len(ia.Exports) > 0 && (ia.Push || ia.Load) { if len(ia.Exports) > 0 && (ia.Push || ia.Load) {
multierr = errors.Join( multierr = errors.Join(multierr,
multierr,
newCheckFailure(errors.New("multiple exports require a v0.13 buildkit daemon or newer"), "exports"), newCheckFailure(errors.New("multiple exports require a v0.13 buildkit daemon or newer"), "exports"),
) )
} }
@@ -790,8 +778,7 @@ func (i *Image) Update(
ctx context.Context, ctx context.Context,
req infer.UpdateRequest[ImageArgs, ImageState], req infer.UpdateRequest[ImageArgs, ImageState],
) (infer.UpdateResponse[ImageState], error) { ) (infer.UpdateResponse[ImageState], error) {
resp, err := i.Create( resp, err := i.Create(ctx,
ctx,
infer.CreateRequest[ImageArgs]{Name: req.ID, Inputs: req.Inputs, DryRun: req.DryRun}, infer.CreateRequest[ImageArgs]{Name: req.ID, Inputs: req.Inputs, DryRun: req.DryRun},
) )
return infer.UpdateResponse[ImageState]{Output: resp.Output}, err return infer.UpdateResponse[ImageState]{Output: resp.Output}, err