Permalink
Browse files

feat(docker): Preliminary work for automated dockerhub builds.

  • Loading branch information...
cooperaj authored and jkuri committed Nov 7, 2017
1 parent eed4ef7 commit 18c83afe55cb0c91ea7b910b3cf400e15147c39d
Showing with 10 additions and 2 deletions.
  1. +7 −2 Dockerfile
  2. +3 −0 hooks/build
@@ -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 <jan@bleenco.com>" \
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

@@ -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.