If container's directory is empty, don't build and push an image. The image registry is used instead to deploy the container.
Why do we need this?
Fix bug.
How have you tested it?
Deployed locally two containers: one with directory, the other one only with registry image. It is assumed that a user will never use a directory and a registry image at the same time as stated on the readme guidelines.
Checklist
[x] I have reviewed this myself
[ ] There is a unit test covering every change in this PR
Summary
What's changed?
If container's directory is empty, don't build and push an image. The image registry is used instead to deploy the container.
Why do we need this?
Fix bug.
How have you tested it?
Deployed locally two containers: one with directory, the other one only with registry image. It is assumed that a user will never use a directory and a registry image at the same time as stated on the readme guidelines.
Checklist
Details