Repository navigation
Commit 07b56fb
committed
Fix docker tagging failure in upload_artifacts by using stable tag name
The upload_artifacts.sh script previously read the build-phase image
id from example-hostname.id to tag and push the example image.
However, because the build and upload phases run on different VMs,
differences in the Docker daemon versions and layer serialization
can cause the image ID (hash of the config JSON) to be recalculated
differently during docker load on the upload VM. This mismatch
caused the docker tag command to fail with a "No such image" error.
This change fixes the issue by directly tagging the stable, imported
image tag hostname:latest (which is guaranteed to exist after
docker load succeeds) instead of using the brittle sha256 hash.
Failed upload job logs:
https://btx.cloud.google.com/invocations/387baa72-224e-4885-bedc-9b9eb079a505/targets/grpc%2Fjava%2Fv1.83.x%2Fbranch%2Fupload_artifacts/log1 parent b4fb7f4 commit 07b56fb
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
0 commit comments