-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Cloud Build doesn't hydrate the BUILDPLATFORM env #2984
Copy link
Copy link
Open
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Activity
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Since #2589 was introduced, it broke the releasing process, though I just noticed now trying to perform a release.
The release build fails with errors like:
It looks like Cloud Build may support BuildKit but I was not successful in finding a solution to enable BuildKit via
gcloud builds submit, which is what the releasing process does: https://github.com/GoogleCloudPlatform/microservices-demo/blob/main/docs/releasing/make-docker-images.sh#L43As a temporary workaround, to be able to do the latest release (#2983) I had to
git revert(and then subsequentlygit cherry-pick) the commit introducingBUILDPLATFORM(916eeac)