prosody/hooks/build
Jochen Schalanda c36fc42e9c
Initial commit
2018-02-23 19:01:52 +01:00

9 lines
339 B
Bash

#!/bin/bash
# Custom build for Docker Hub
# see: https://medium.com/microscaling-systems/labelling-automated-builds-on-docker-hub-f3d073fb8e1
docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VCS_REF=$GIT_SHA1 \
--build-arg VERSION=$DOCKER_TAG \
--tag $IMAGE_NAME .