Skip to content

Commit

Permalink
feat(docker): Preliminary work for automated dockerhub builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperaj authored and jkuri committed Nov 10, 2017
1 parent eed4ef7 commit 18c83af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,20 @@ RUN apk add --no-cache --virtual .build-dependencies make gcc g++ python curl sq
# Stage 3 image
FROM alpine:3.6

ARG VCS_REF=n/a
ARG VERSION=dev
ARG BUILD_DATE=n/a

LABEL maintainer="Jan Kuri <[email protected]>" \
org.label-schema.schema-version="1.0" \
org.label-schema.name="abstruse" \
org.label-schema.description="Continuous integration platform, simple, scalable and fast" \
org.label-schema.url="https://abstruse.bleenco.io/" \
org.label-schema.vcs-url="https://github.com/bleenco/abstruse" \
org.label-schema.vendor="Bleenco" \
org.label-schema.vcs-ref="n/a" \
org.label-schema.version="dev"
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.version=$VERSION \
org.label-schema.build-date=$BUILD_DATE

WORKDIR /app

Expand Down
3 changes: 3 additions & 0 deletions hooks/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VCS_REF=$SOURCE_COMMIT --build-arg VERSION=$DOCKER_TAG -t $IMAGE_NAME .

0 comments on commit 18c83af

Please sign in to comment.