-
Notifications
You must be signed in to change notification settings - Fork 15
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
[8/n][pipeline-gen] Add method to generate build step #48
Conversation
khluu
commented
Oct 22, 2024
•
edited
Loading
edited
- Add method to generate build step based on commit, container registry and image.
Signed-off-by: kevin <[email protected]>
is this for review? could you add a PR description maybe? |
@@ -0,0 +1,26 @@ | |||
from typing import List | |||
|
|||
def get_build_commands(container_registry: str, buildkite_commit: str, container_image: str) -> List[str]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any unit test? or is this so simple that does not require one?
maybe we should have some form of integration test to test these commands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just replacing placeholders for container registry, container image, and commit so I don't think unit test is needed here.
f"--build-arg USE_SCCACHE=1 " | ||
f"--tag {container_image} " | ||
f"--target test " | ||
f"--progress plain ." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you leave a todo here to not using .
to include everything as the build context?
Signed-off-by: kevin <[email protected]>