-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Why does the input resource name have to show up in pathToDockerFile and pathToContext #888
Comments
Resource names describe where the source is placed inside The kaniko builder needs to be aware of the location of the input resource, to know where inside FWIW, in general you should probably use the |
@imjasonh Thank you for the response. |
@houshengbo |
The Kaniko task in the catalog sets I've proposed tektoncd/catalog#33 to address this, thanks for bringing this to my attention. |
@imjasonh --context=/workspace/source/${inputs.params.CONTEXT}, so --context can be set to ./. The user does not need to care whether workspace or workspace/source. |
It looks like we can close this now that the catalog fix has been merged. Please let me know if I missed something and there is still work to do here. |
This is the example used at the page: https://github.com/tektoncd/pipeline/blob/master/docs/tutorial.md#task-inputs-and-outputs to create a task:
It took me hours to figure out we have to keep the input resource name, like "docker-source" as defined in this example, in pathToDockerFile and pathToContext as part of the prefix "/workspace/docker-source", then continue the REAL path to dockerfile or context. Why is it implemented like this?
The input resource name actually has nothing to do with pathToDockerFile and pathToContext.
The text was updated successfully, but these errors were encountered: