Gert-Jan Timmer 55da4ae7cf Rewrite CI
UPD .gitlab-ci.yml
UPD: Dockerfile
UPD: circle-ci.yml
DEL: ci/gitlab -> moved to .gitlab-ci.yml
ADD: Labels
ADD: Docker Daemon build hook
ADD: Build Arguments
2018-11-08 15:06:32 +01:00

11 lines
293 B
Plaintext

!/bin/bash
# Docker Daemon Build Hook
# $IMAGE_NAME var is injected into the build so the tag is correct.
docker build \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
--build-arg VERSION=$(cat VERSION) \
-t $IMAGE_NAME .