Skip to content

Commit

Permalink
feat(version): read version from version file
Browse files Browse the repository at this point in the history
  • Loading branch information
garethflowers committed Oct 16, 2019
1 parent 789c136 commit 29edf62
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM mediawiki:1.33.1

ARG BUILD_DATE
ARG VERSION
ARG VCS_REF

LABEL org.label-schema.build-date=$BUILD_DATE \
Expand All @@ -12,7 +13,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/garethflowers/docker-mediawiki-ldap" \
org.label-schema.vendor="garethflowers" \
org.label-schema.version="0.0.0"
org.label-schema.version=$VERSION

RUN apt-get update \
&& apt-get install -y --no-install-recommends libldap2-dev libpq-dev \
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.1
1 change: 1 addition & 0 deletions hooks/build
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
docker build \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
--build-arg VERSION=`cat VERSION` \
--file $DOCKERFILE_PATH \
--tag $IMAGE_NAME \
.

0 comments on commit 29edf62

Please sign in to comment.