Skip to content

Commit

Permalink
Fix docker push command
Browse files Browse the repository at this point in the history
  • Loading branch information
snehapar9 committed Sep 30, 2023
1 parent 79201ad commit 356bfdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5412,7 +5412,7 @@ var ContainerRegistryHelper = /** @class */ (function () {
return [4 /*yield*/, toolHelper.which("docker", true)];
case 2:
dockerTool = _a.sent();
return [4 /*yield*/, util.executeAndThrowIfError(dockerTool + " tag " + imageToPush + " " + imageToPush)];
return [4 /*yield*/, util.executeAndThrowIfError(dockerTool + " push " + imageToPush)];
case 3:
_a.sent();
return [3 /*break*/, 5];
Expand Down
2 changes: 1 addition & 1 deletion src/ContainerRegistryHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class ContainerRegistryHelper {
toolHelper.writeDebug(`Attempting to push image "${imageToPush}" to ACR`);
try {
let dockerTool: string = await toolHelper.which("docker", true);
await util.executeAndThrowIfError(`${dockerTool} tag ${imageToPush} ${imageToPush}`);
await util.executeAndThrowIfError(`${dockerTool} push ${imageToPush}`);
} catch (err) {
toolHelper.writeError(`Failed to push image "${imageToPush}" to ACR. Error: ${err.message}`);
throw err;
Expand Down

0 comments on commit 356bfdb

Please sign in to comment.