Skip to content

Commit 14f2b67

Browse files
authored
Merge pull request #3693 from djmitche/fix-yarn-build
(hotfix) fix got invocation in image-build process
2 parents b9ce8fe + 4d07d3e commit 14f2b67

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

changelog/DOrI5ptoQYG7I2dsMK_ndA.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
audience: developers
2+
level: silent
3+
---

infrastructure/tooling/src/utils/docker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ exports.dockerRegistryCheck = async ({ tag }) => {
227227
const [repo, imagetag] = tag.split(/:/);
228228
try {
229229
// Access the registry API directly to see if this tag already exists, and do not push if so.
230-
const res = await got(`https://index.docker.io/v1/repositories/${repo}/tags`, { json: true });
230+
const res = await got(`https://index.docker.io/v1/repositories/${repo}/tags`, { responseType: 'json' });
231231
if (!res.body) {
232232
throw new Error('invalid response from index.docker.io');
233233
}

0 commit comments

Comments
 (0)