Closed ksrisurapaneni closed 3 years ago
Looks like path attribute doesn't work, so I removed that and added dockerfile attribute. But there seems to be a caveat, dockerfile attribute works only when I use the variable present in entrypoint.sh
dockerfile: "${{ env.INPUT_PATH }}/Dockerfile"
It returns an error when I store my path in a different variable:
dockerfile: "${{ env.FILE_NAME}}/Dockerfile"
== START DOCKERIZE
"docker build" requires exactly 1 argument.
See 'docker build --help'.
Usage: docker build [OPTIONS] PATH | URL | -
Build an image from a Dockerfile
Thanks, Keerti
Hi,
When I give a custom folder path for Dockerfile in path attribute,
docker build
command seems to be failing with below error:ex path: path: ${{ env.INPUT_PATH }} path: ${{ env.FILE_PATH }}
I am not giving any arguments at all. Looking at entrypoint.sh, looks like the below function is missing path and $INPUT_PATH. Could that be the issue?
Please let me know if I am doing something wrong.
Thanks, Keerti