aboutsummaryrefslogtreecommitdiff
path: root/src/deliverable.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-04-12 15:58:50 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-04-12 15:58:50 -0400
commitd3e198d5c7d76342d032554f45539714034e4bae (patch)
tree74206a0288c6e79e6a1b1df651efed5f4481e8fc /src/deliverable.c
parent507c003a36584fae29cba00ca8e264488f39476e (diff)
downloadstasis-d3e198d5c7d76342d032554f45539714034e4bae.tar.gz
Avoid building docker images when no Dockerfile is present
Diffstat (limited to 'src/deliverable.c')
-rw-r--r--src/deliverable.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/deliverable.c b/src/deliverable.c
index 4c29fa4..0729ff8 100644
--- a/src/deliverable.c
+++ b/src/deliverable.c
@@ -752,9 +752,11 @@ int delivery_init(struct Delivery *ctx) {
}
}
- if (docker_validate_compression_program(ctx->deploy.docker.image_compression)) {
- SYSERROR("[deploy:docker].image_compression - invalid command / program is not installed: %s", ctx->deploy.docker.image_compression);
- return -1;
+ if (ctx->deploy.docker.image_compression) {
+ if (docker_validate_compression_program(ctx->deploy.docker.image_compression)) {
+ SYSERROR("[deploy:docker].image_compression - invalid command / program is not installed: %s", ctx->deploy.docker.image_compression);
+ return -1;
+ }
}
return 0;
}