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
- name: Generate Pulumi Access Token
id: generate_pulumi_token
uses: pulumi/auth-actions@1c89817aab0c66407723cdef72b05266e7376640 # v1.0.1
uses: pulumi/auth-actions@141415910c3beb54e03b48e9057c204c97b956f2 # v2.1.0
with:
organization: pulumi
requested-token-type: urn:pulumi:token-type:access_token:organization

View File

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

View File

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

View File

@@ -446,7 +446,7 @@ jobs:
run: make install_${{ matrix.language}}_sdk
- name: Generate Pulumi Access Token
id: generate_pulumi_token
uses: pulumi/auth-actions@1c89817aab0c66407723cdef72b05266e7376640 # v1.0.1
uses: pulumi/auth-actions@141415910c3beb54e03b48e9057c204c97b956f2 # v2.1.0
with:
organization: pulumi
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.
func (i *Image) Annotate(a infer.Annotator) {
a.Describe(
&i, dedent(`
a.Describe(&i, dedent(`
A Docker image built using buildx -- Docker's interface to the improved
BuildKit backend.
@@ -80,8 +79,8 @@ func (i *Image) Annotate(a infer.Annotator) {
We will strive to keep APIs and behavior as stable as possible, but we
cannot guarantee stability until version 1.0.
`)+
"\n\n"+_migration+
"\n\n"+_imageExamples,
"\n\n"+_migration+
"\n\n"+_imageExamples,
)
}
@@ -303,8 +302,7 @@ type ImageState struct {
func (is *ImageState) Annotate(a infer.Annotator) {
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
elsewhere.
@@ -436,13 +434,7 @@ func (ia *ImageArgs) normalize(preview bool) ImageArgs {
func (ia *ImageArgs) buildable() bool {
// We can build the given inputs if filtering unknowns is a no-op.
filtered := ia.normalize(true)
equal := reflect.DeepEqual(ia, &filtered)
if !equal {
fmt.Printf("Not buildable:\n\tArgs => %v\n\tNormalize => %v", ia, &filtered)
}
return equal
return reflect.DeepEqual(ia, &filtered)
}
// 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 {
provider.GetLogger(ctx).Warning(
"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 {
provider.GetLogger(ctx).Warning(
"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{
@@ -533,8 +523,7 @@ func (ia *ImageArgs) validate(supportsMultipleExports, preview bool) (controller
if !supportsMultipleExports {
if len(ia.Exports) > 1 {
multierr = errors.Join(
multierr,
multierr = errors.Join(multierr,
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) {
multierr = errors.Join(
multierr,
multierr = errors.Join(multierr,
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,
req infer.UpdateRequest[ImageArgs, ImageState],
) (infer.UpdateResponse[ImageState], error) {
resp, err := i.Create(
ctx,
resp, err := i.Create(ctx,
infer.CreateRequest[ImageArgs]{Name: req.ID, Inputs: req.Inputs, DryRun: req.DryRun},
)
return infer.UpdateResponse[ImageState]{Output: resp.Output}, err