File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,20 @@ RUN apk add --no-cache --virtual .build-dependencies make gcc g++ python curl sq
2929# Stage 3 image
3030FROM alpine:3.6
3131
32+ ARG VCS_REF=n/a
33+ ARG VERSION=dev
34+ ARG BUILD_DATE=n/a
35+
3236LABEL 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
4247WORKDIR /app
4348
Original file line number Diff line number Diff line change 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 .
You can’t perform that action at this time.
0 commit comments