mirror of
https://github.com/tomav/docker-mailserver
synced 2025-08-31 06:15:28 +00:00
housekeeping
This commit is contained in:
13
hooks/build
13
hooks/build
@@ -1,8 +1,9 @@
|
||||
#!/bin/sh
|
||||
VCS_REF=$(git rev-parse --short HEAD)
|
||||
VCS_VERSION=$(git describe --tags --contains --always)
|
||||
#! /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" .
|
||||
--build-arg VCS_REF="${VCS_REF}" \
|
||||
--build-arg VCS_VERSION="${VCS_VERSION}" \
|
||||
-f "${DOCKERFILE_PATH}" -t "${IMAGE_NAME}" .
|
||||
|
Reference in New Issue
Block a user