Skip to content
Permalink
Browse files

feat(docker): add vcs version as env var

  • Loading branch information...
hanxiao committed Sep 26, 2019
1 parent aa0f994 commit 285d9ddebe713ba0fddd51abd70598bb2b88c16a
@@ -31,4 +31,6 @@ RUN apk add --no-cache \

WORKDIR /

ENV GNES_VCS_VERSION=$VCS_REF

ENTRYPOINT ["gnes"]
@@ -26,4 +26,6 @@ RUN ln -s locale.h /usr/include/xlocale.h && \

WORKDIR /

ENV GNES_VCS_VERSION=$VCS_REF

ENTRYPOINT ["gnes"]
@@ -27,4 +27,6 @@ RUN pip --no-cache-dir install .[all] \

WORKDIR /

ENV GNES_VCS_VERSION=$VCS_REF

ENTRYPOINT ["gnes"]
@@ -32,4 +32,6 @@ RUN pip3 install . --no-cache-dir --compile && \

WORKDIR /

ENV GNES_VCS_VERSION=$VCS_REF

ENTRYPOINT ["gnes"]
@@ -43,7 +43,7 @@ do
printf "i will build $IMAGE_TAG based on $DOCKER_FILE\n"

docker build --network host --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VCS_REF=${DRONE_COMMIT_REF} \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
--rm --target $TARGET -t $IMAGE_TAG -f $DOCKER_FILE .


@@ -20,4 +20,4 @@

# do not change this line manually
# this is managed by shell/make-proto.sh and updated on every execution
__proto_version__ = '0.0.9'
__proto_version__ = '0.0.10'

0 comments on commit 285d9dd

Please sign in to comment.
You can’t perform that action at this time.