Closed maurolepore closed 3 years ago
this happens when running the script when the working directory is the root directory of this project, i.e. pacta/build_with_tag.sh 0.0.6
I'm tempted to completely remove the ability to call the command from outside pacta/. This feature is buggy and building an image from the directory containing a Dockerfile seems like common practice (and AFAIK it's enforced by docker-compose
).
Would you be okay with that? -- hopefully to get less bugs and simpler code.
yeah, this is not a feature that I need
however, there's nothing explicitly preventing someone from running this from somewhere else, so maybe the script should check that its working directory is pacta
or exit with a message?