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

13 lines
338 B
Bash
Raw Normal View History

2018-03-27 09:14:07 +00:00
#!/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 .
2019-01-17 10:21:43 +00:00
[ "$version" = "latest" ] || docker tag ejabberd/ecs:$version ejabberd/ecs:latest