**Description:** This PR updates the `moby/buildkit` dependency to `v0.20.1` in order to remain compatible with recent changes required by GitHub Actions (GHA) caching. During the upgrade, several upstream behavioral changes required forking and restoring legacy logic to maintain compatibility: - Introduced `containsGithubToken` to replicate logic that was previously in `buildflags.ParseCacheEntry`, which is now removed. This check ensures we return `nil` instead of a zero-value object. - Forked the previous implementation of `ParseExports`, as its upstream logic changed significantly. This ensures short-term compatibility for release before the GHA deprecation deadline. - A follow-up issue will be created to improve this forked logic and align more closely with upstream behavior. 🚨 **Fixes critical issue:** This change addresses a high-priority issue where GitHub Actions cache will stop working due to the upcoming deprecation of the legacy caching service (effective **April 15, 2025**). Recent build failures showed errors like: > *"This legacy service is shutting down, effective April 15, 2025. Migrate to the new service ASAP. For more information: https://gh.io/gha-cache-sunset"* Root cause was identified in #515, where using `buildx >= 0.21.0` is required. This repo was previously using `buildx 0.18.0`. Closes: #515
2.3 KiB
2.3 KiB
Unreleased
Added
- Multiple exports are now allowed if the build daemon is detected to have version 0.13 of Buildkit or newer. (https://github.com/pulumi/pulumi-docker-build/issues/21)
- Use 'buildkit' as default scope (https://github.com/pulumi/pulumi-docker-build/pull/516)
Changed
- Upgraded buildx from 0.16.0 to 0.20.1.
Fixed
- Custom
# syntax=directives no longer cause validation errors. (https://github.com/pulumi/pulumi-docker-build/issues/300) - Upgrading docker-build no longer causes resource replacements. (https://github.com/pulumi/pulumi-docker-build/issues/404)
- Fixed leaking the GitHub actions secret in diff logs. (https://github.com/pulumi/pulumi-docker-build/issues/403)
- Provider panics when using Image resource with exec set to true. (https://github.com/pulumi/pulumi-docker-build/issues/482)
0.0.7 (2024-10-16)
Fixed
- Fixed an issue where registry authentication couldn't be specified on the provider. (https://github.com/pulumi/pulumi-docker-build/issues/262)
0.0.6 (2024-08-13)
Fixed
- Refreshing an
Indexresource will no longer fail if its stored credentials have expired. (https://github.com/pulumi/pulumi-docker-build/pull/194)
Changed
- Local and tar exporters will now trigger an update if an export doesn't exist at the expected path. (https://github.com/pulumi/pulumi-docker-build/pull/195)
0.0.5 (2024-08-08)
Fixed
- Fixed Go SDK publishing.
Changed
- Upgraded docker from 27.0.3 to 27.1.0.
0.0.4 (2024-07-15)
Changed
- Upgraded buildkit from 0.13.0 to 0.15.0.
- Upgraded buildx from 0.13.1. to 0.16.0.
- Upgraded docker from 26.0.0-rc1 to 27.0.3.
- Fixed an issue where warnings were not displayed correctly.
0.0.3 (2024-05-31)
Fixed
- Fixed the default value for
ACTIONS_CACHE_URLwhen using GitHub action caching. (https://github.com/pulumi/pulumi-docker-build/pull/80) - Fixed Java SDK publishing. (https://github.com/pulumi/pulumi-docker-build/pull/89)
- Fixed a panic that could occur when
contextwas omitted. (https://github.com/pulumi/pulumi-docker-build/pull/83)
Changed
- The provider will now wait for new builders to fully boot.
0.0.2 (2024-04-25)
Fixed
- Upgraded pulumi-go-provider to fix a panic during cancellation.
0.0.1 (2024-04-23)
Initial release.