Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature to tag image with multiple tags #21

Merged
merged 5 commits into from
Feb 1, 2021

Conversation

divyansh42
Copy link
Member

Fixes: #20

Signed-off-by: divyansh42 [email protected]

@divyansh42 divyansh42 requested a review from tetchel January 22, 2021 18:58
@divyansh42 divyansh42 force-pushed the issue-20 branch 3 times, most recently from a0fc441 to cc7e1fd Compare January 25, 2021 06:18
@divyansh42 divyansh42 force-pushed the issue-20 branch 3 times, most recently from 6aaea1f to c10339c Compare January 27, 2021 11:27
Signed-off-by: divyansh42 <[email protected]>
Copy link
Contributor

@tetchel tetchel left a comment

Choose a reason for hiding this comment

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

It looks mostly good, just some minor notes

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
action.yml Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/buildah.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/index.ts Show resolved Hide resolved
src/index.ts Show resolved Hide resolved
@tetchel
Copy link
Contributor

tetchel commented Jan 28, 2021

I notice this action is still missing the eslint and action-io-generator CI checks. I would love to put our 3 CI checks into a composite action so we can reuse them more easily. Once this and the matching push-to-registry PR are in we can think about that.

@divyansh42
Copy link
Member Author

I notice this action is still missing the eslint and action-io-generator CI checks. I would love to put our 3 CI checks into a composite action so we can reuse them more easily. Once this and the matching push-to-registry PR are in we can think about that.

Yeah, I have planned to add CI checks in a seperate PR, but it will be great if we can have a composite action for this.

Signed-off-by: divyansh42 <[email protected]>
Signed-off-by: divyansh42 <[email protected]>
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Signed-off-by: divyansh42 <[email protected]>
(acc, line) => acc.concat(line).map(pat => pat.trim()),
[]
.split(/\r?\n/)
.filter((x) => x)
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't have to change this right now but this filter call does nothing and should be removed

[]
.split(/\r?\n/)
.filter((x) => x)
.reduce<string[]>(
Copy link
Contributor

@tetchel tetchel Jan 31, 2021

Choose a reason for hiding this comment

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

this reduce also looks like it should be a map. it's not doing any flattening, just trimming each item

Copy link
Contributor

@tetchel tetchel left a comment

Choose a reason for hiding this comment

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

Good work. Let's put together a workflow on push-to-registry that does a multi-tag build with this, and then a multi-tag push.

@tetchel tetchel merged commit 88e0085 into redhat-actions:main Feb 1, 2021
@divyansh42 divyansh42 deleted the issue-20 branch April 5, 2021 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow outputting image with multiple tags
2 participants