Skip to content
Snippets Groups Projects
Commit e69ccba8 authored by Liz Rice's avatar Liz Rice
Browse files

Docker build hook to add label info

parent 74ca0229
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# $IMAGE_NAME var is injected into the build so the tag is correct.
docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
-t $IMAGE_NAME .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment