ci: Fix lack of commit hash during the build

git repo requires to have objects directory which I have missed.

License: MIT
Signed-off-by: default avatarJakub Sztandera <kubuxu@protonmail.ch>
parent 765fb0f6
...@@ -37,9 +37,10 @@ USER user ...@@ -37,9 +37,10 @@ USER user
RUN make -f mk/gx.mk gx-deps RUN make -f mk/gx.mk gx-deps
USER root USER root
COPY . $SRC_PATH/ COPY . $SRC_PATH
RUN chown -R user $GOPATH RUN chown -R user:user $GOPATH
USER user USER user
RUN make cmd/ipfs/ipfs #populate go cache # mkdir .git/objects is required for git to detect repo
RUN mkdir .git/objects && make cmd/ipfs/ipfs #populate go cache
CMD ["/bin/bash", "-c", "trap : TERM INT; sleep infinity & wait"] CMD ["/bin/bash", "-c", "trap : TERM INT; sleep infinity & wait"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment