-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docker): Preliminary work for automated dockerhub builds.
- Loading branch information
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
# 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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |