Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
feat(docker): add vcs version as env var
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Sep 26, 2019
1 parent aa0f994 commit 285d9dd
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Dockerfiles/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ RUN apk add --no-cache \

WORKDIR /

ENV GNES_VCS_VERSION=$VCS_REF

ENTRYPOINT ["gnes"]
2 changes: 2 additions & 0 deletions Dockerfiles/buster.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ RUN ln -s locale.h /usr/include/xlocale.h && \

WORKDIR /

ENV GNES_VCS_VERSION=$VCS_REF

ENTRYPOINT ["gnes"]
2 changes: 2 additions & 0 deletions Dockerfiles/full.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ RUN pip --no-cache-dir install .[all] \

WORKDIR /

ENV GNES_VCS_VERSION=$VCS_REF

ENTRYPOINT ["gnes"]
2 changes: 2 additions & 0 deletions Dockerfiles/ubuntu18.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ RUN pip3 install . --no-cache-dir --compile && \

WORKDIR /

ENV GNES_VCS_VERSION=$VCS_REF

ENTRYPOINT ["gnes"]
2 changes: 1 addition & 1 deletion docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 .


Expand Down
2 changes: 1 addition & 1 deletion gnes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.