Skip to content

Commit 18c83af

Browse files
cooperajjkuri
authored andcommitted
feat(docker): Preliminary work for automated dockerhub builds.
1 parent eed4ef7 commit 18c83af

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,20 @@ RUN apk add --no-cache --virtual .build-dependencies make gcc g++ python curl sq
2929
# Stage 3 image
3030
FROM alpine:3.6
3131

32+
ARG VCS_REF=n/a
33+
ARG VERSION=dev
34+
ARG BUILD_DATE=n/a
35+
3236
LABEL maintainer="Jan Kuri <jan@bleenco.com>" \
3337
org.label-schema.schema-version="1.0" \
3438
org.label-schema.name="abstruse" \
3539
org.label-schema.description="Continuous integration platform, simple, scalable and fast" \
3640
org.label-schema.url="https://abstruse.bleenco.io/" \
3741
org.label-schema.vcs-url="https://github.com/bleenco/abstruse" \
3842
org.label-schema.vendor="Bleenco" \
39-
org.label-schema.vcs-ref="n/a" \
40-
org.label-schema.version="dev"
43+
org.label-schema.vcs-ref=$VCS_REF \
44+
org.label-schema.version=$VERSION \
45+
org.label-schema.build-date=$BUILD_DATE
4146

4247
WORKDIR /app
4348

hooks/build

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env sh
2+
3+
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 commit comments

Comments
 (0)