Skip to content

Commit

Permalink
Leave alone image name if skip-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
rgarcia-phi committed Apr 8, 2022
1 parent 15fb2a2 commit dba69b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ if (localImage.includes(',')) {
if (direction === 'push') {
const imagesToPush = getImagesToPush(localImage, image, isSemver);
for (const imageToPush of imagesToPush) {
const uri = `${awsAccountId}.dkr.ecr.${awsRegion}.amazonaws.com/${imageToPush.remoteImage}`;
const uri = skipTag
? imageToPush.remoteImage
: `${awsAccountId}.dkr.ecr.${awsRegion}.amazonaws.com/${imageToPush.remoteImage}`;

console.log(`Pushing local image ${imageToPush.localImage} to ${uri}`);
if (!skipTag) {
run(`docker tag ${imageToPush.localImage} ${uri}`);
Expand Down

0 comments on commit dba69b1

Please sign in to comment.