Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

useful tag name for MRs, added imageTagPrefix and imageTagSuffix#11

Merged
matootie merged 3 commits intomatootie:masterfrom
123FLO321:patch-1
Jan 22, 2020
Merged

useful tag name for MRs, added imageTagPrefix and imageTagSuffix#11
matootie merged 3 commits intomatootie:masterfrom
123FLO321:patch-1

Conversation

@123FLO321
Copy link
Copy Markdown
Contributor

  • Useful tag name for MRs: mrID (e.g.: mr1)
  • added imageTagPrefix and imageTagSuffix options

@matootie
Copy link
Copy Markdown
Owner

Interesting addition. It took me a little while to see the purpose in having an image prefix or suffix, when you can just specify the image tag... but now I see it. You can have GitHub Docker decide the tag of the image, and prepend or append something you like to it. Nice stuff!

@matootie matootie added the enhancement New feature or request label Jan 22, 2020
@123FLO321
Copy link
Copy Markdown
Contributor Author

123FLO321 commented Jan 22, 2020

@matootie I might even change this up a bit so we can use regex or something in the tag instead.
But for now this works perfectly fine.

@matootie matootie merged commit d5d966c into matootie:master Jan 22, 2020
@matootie
Copy link
Copy Markdown
Owner

@123FLO321 I very impatiently merged the PR already! 😆

Let's open up a new PR for that, if you'd like.

Comment thread dist/index.js
}
}
let imageTagPrefix = core.getInput('imageTagPrefix', { required: false });
if (imageTagPrefix) imageName = imageTagPrefix + imageName;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also made a mistake here (and 2 limes below)
Should be imageTag not imageName

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've addressed this in #12

Take a look when you get the chance, and I'll put the fix in a new release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants