Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
feat(docker): add vcs version as env var
  • Loading branch information
hanhxiao committed Sep 26, 2019
1 parent aa0f994 commit 285d9ddebe713ba0fddd51abd70598bb2b88c16a
Showing with 10 additions and 2 deletions.
  1. +2 −0 Dockerfiles/alpine.Dockerfile
  2. +2 −0 Dockerfiles/buster.Dockerfile
  3. +2 −0 Dockerfiles/full.Dockerfile
  4. +2 −0 Dockerfiles/ubuntu18.Dockerfile
  5. +1 −1 docker-build.sh
  6. +1 −1 gnes/__init__.py
@@ -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.