Using the odo.dev.push.path related attribute
odo
uses the odo.dev.push.path
related attribute from the devfile's run commands to push only the specified files and folders to the component.
The format of the attribute is "odo.dev.push.path:<local_relative_path>": "<remote_relative_path>"
. We can mention multiple such attributes in the run command's attributes
section.
In the above example the contents of the quarkus-app
folder, which is inside the target
folder, will be pushed to the remote location of remote-target/quarkus-app
and the file README.txt
will be pushed to doc/README.txt
. The local path is relative to the component's local folder. The remote location is relative to the folder containing the component's source code inside the container.