Browse Source

Added custome build script for docker hub

tags/3.0.1
Zopanix 3 years ago
parent
commit
8c5c4cc8d1
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      hooks/build

+ 6
- 0
hooks/build View File

@@ -0,0 +1,6 @@
#!/bin/bash
docker build \
--build-arg VCS_REF=`git rev-parse HEAD` \
--build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` \
--build-arg VERSION=`git describe --tags --exact-match || git rev-parse HEAD` \
-t $IMAGE_NAME .

Loading…
Cancel
Save