Build action of type exec - How to access files th...
# 🌱|help-and-getting-started
s
I'm running a build action of type exec to run a build on balena.io This requires me to have access to the files which I specified as
includes
for the action. Currently, the include folder stays empty and I cannot reference the files. This feels rather different to the build action of type container. Here I need to specify files I would like to reference all files I would like to add to the container using e.g.
COPY
in the include section. Otherwise they are not found. Am I misunderstanding the behaviour for the build exec action or is something amiss here? A minimal example is:
Copy code
yml
kind: Build
name: exec-no-files
type: exec
spec:
  shell: true
  command:
    [
      "ls README.md",
    ]
include:
  - README.md
If I specify
buildAtSource: true
it is found of course
Nevermind, I had the yml file containing that action at the wrong location. Moved it to the top level and that error is gone.
b
Happy to learn that you got it working!
4 Views