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 qualifier support for docker build task #1844

Conversation

peterzhuamazon
Copy link
Member

Description

Add qualifier support for docker build task
Example: https://hub.docker.com/r/opensearchstaging/opensearch/tags?page=1&name=2.0.0-alpha1

Issues Resolved

Part of #1632

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
Copy link
Member

@zelinh zelinh left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
@peterzhuamazon
Copy link
Member Author

@gaiksaya @zelinh please review again I add one more test case so we can test both with/without qualifier.

@peterzhuamazon peterzhuamazon merged commit ff40ffb into opensearch-project:main Mar 29, 2022
@peterzhuamazon peterzhuamazon deleted the opensearch-docker-qualifier branch March 29, 2022 22:49

if (build_qualifier != null && build_qualifier != 'null') {
build_qualifier = "-" + build_qualifier
}
Copy link
Member

Choose a reason for hiding this comment

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

Nit: move else up.

Copy link
Member Author

Choose a reason for hiding this comment

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

I should just default build_qualifier to null and check inputmanifest.build.qualifier.
Will change in a later improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants