1
0
mirror of https://github.com/alrayyes/docker-alpine-hugo-git-bash synced 2023-11-14 15:56:26 +00:00
docker-alpine-hugo-git-bash/hooks/build

9 lines
291 B
Plaintext
Raw Normal View History

2017-09-15 23:19:16 +00:00
#!/bin/bash
# $IMAGE_NAME var is injected into the build so the tag is correct.
2017-09-15 23:27:53 +00:00
docker build --build-arg VCS_REF=`git rev-parse —short HEAD` \
2017-09-15 23:19:16 +00:00
--build-arg VCS_URL=`git config --get remote.origin.url` \
--build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` \
-t $IMAGE_NAME .