narrow-optician-6866
12/23/2024, 3:32 PMyml
- repository_A (main project)
- garden.yml
- repository_B (holds source code for remote action in repo A)
- rust
- package_1
- Dockerfile
- package_2
- Dockerfile
When building the Dockerfiles in Garden, it checks out repository_B
and places it in .garden
, and then proceeds to attempt the build from the root of repository_B
. My build action looks something like this:
yml
# repository_A/garden.yaml
kind: Build
type: container
name: <name>
spec:
dockerfile: rust/package_1/Dockerfile
source:
repository:
url: <repository_B>
The issue here is that I need to build it from one level further down, in the rust
subdirectory or the build fails. From what I can find in the docs there doesn't seem to be a straight-forward way to do this. I've tried different variants of include
with no luck.
I could stop using remote actions in favor of remote sources, but this would pollute repository_B
with garden files though and mess up our ownership boundaries. Is there a way to declare a subdir in the source that I'm missing?big-spring-14945
01/07/2025, 2:36 PMsource:
path: rust
repository:
url: <repository_B>
big-spring-14945
01/07/2025, 2:38 PMnarrow-optician-6866
01/15/2025, 3:33 AMbig-spring-14945
01/16/2025, 1:22 PMbig-spring-14945
01/16/2025, 1:23 PMsource.path
with remote actions has been released as part of 0.13.48
by the way