mirror of
https://github.com/alrayyes/docker-alpine-hugo-git-bash
synced 2023-11-14 15:56:26 +00:00
9 lines
292 B
Plaintext
9 lines
292 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
# $IMAGE_NAME var is injected into the build so the tag is correct.
|
||
|
|
||
|
docker build --build-arg VCS_REF=`git rev-parse — short HEAD` \
|
||
|
--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 .
|