2
0
mirror of https://github.com/processone/docker-ejabberd synced 2024-11-10 13:10:37 +00:00
docker-ejabberd/ecs/hooks/build
mathieu.brunot 4a27d2d9bd
Update labels in hook after #40 merged
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
2019-07-30 19:12:42 +02:00

15 lines
432 B
Bash

#!/bin/bash
# See documentation for details:
# https://docs.docker.com/docker-hub/builds/advanced/
# Use $VERSION build environment variable or the Docker repository tag being built
version=${VERSION:-${DOCKER_TAG}}
docker build \
--build-arg VERSION=$version \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
-f $DOCKERFILE_PATH \
-t $IMAGE_NAME .