mirror of
https://github.com/processone/docker-ejabberd
synced 2024-11-12 07:10:41 +00:00
cee24d6e18
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
13 lines
338 B
Bash
Executable File
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
|