Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Update post_build

Michał Rutkac10ce3fe0372
diff --git a/hooks/post_build b/hooks/post_build
index 8d2667ade..ce42a7edd 100644
--- a/hooks/post_build
+++ b/hooks/post_build
@@ -10,7 +10,8 @@ docker run \
-v /var/run/docker.sock:/var/run/docker.sock \
--env DATE_TAG=$CACHE_TAG \
$IMAGE_NAME \
- /bin/sh -c "docker-compose -f profile/deploy.yml build"
+ /bin/sh -c "docker-compose -f profile/deploy.yml build --build-arg GIT_COMMIT=$SOURCE_COMMIT"
+
echo "===> Pushing OpenRemote images"
docker push openremote/deployment:${CACHE_TAG:-latest}