docker-mailserver/hooks/build
Georg Lauterbach ed7106b04d
housekeeping
2020-11-06 14:04:23 +01:00

10 lines
254 B
Bash
Executable file

#! /bin/sh
VCS_REF="$(git rev-parse --short HEAD)"
VCS_VERSION="$(git describe --tags --contains --always)"
docker build \
--build-arg VCS_REF="${VCS_REF}" \
--build-arg VCS_VERSION="${VCS_VERSION}" \
-f "${DOCKERFILE_PATH}" -t "${IMAGE_NAME}" .