From 9764eb229a2a224a7aa685fdec5350780bdb402c Mon Sep 17 00:00:00 2001 From: Filipe Santos Date: Mon, 23 Apr 2018 00:40:42 +1200 Subject: [PATCH] Fix docker cloud build --- .dockerignore | 3 --- docker/hooks/build | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index 8f004c6..82cbdf1 100644 --- a/.dockerignore +++ b/.dockerignore @@ -40,6 +40,3 @@ dist/ # Systemd systemd - -# Docker files -docker diff --git a/docker/hooks/build b/docker/hooks/build index 578d0bd..1727f7a 100644 --- a/docker/hooks/build +++ b/docker/hooks/build @@ -1,3 +1,6 @@ #!/bin/bash +# Docker cloud bug ?, working directory is not set acording to the config +cd .. + docker build --build-arg BRANCH=${SOURCE_BRANCH} --build-arg COMMIT=${SOURCE_COMMIT} -f ${DOCKERFILE_PATH} -t ${IMAGE_NAME} .