2
0
mirror of https://github.com/processone/docker-ejabberd synced 2024-11-10 13:10:37 +00:00
docker-ejabberd/ecs/hooks/build

15 lines
432 B
Plaintext
Raw Normal View History

#!/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 .