2
0
mirror of https://github.com/processone/docker-ejabberd synced 2024-11-12 07:10:41 +00:00
docker-ejabberd/ecs/build.sh
mathieu.brunot cee24d6e18
📝 Add labels from label-schema.org
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
2019-07-16 09:44:12 +02:00

13 lines
338 B
Bash
Executable File

#!/bin/sh
current=$(date +%y.%m)
version=${1:-$current}
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"` \
-t ejabberd/ecs:$version .
[ "$version" = "latest" ] || docker tag ejabberd/ecs:$version ejabberd/ecs:latest