7 lines
208 B
Bash
7 lines
208 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
BRANCH=$(git branch --show-current)
|
||
|
BUILD_DATE=$(date "+%s")
|
||
|
COMMIT_SHA1=$(git rev-parse HEAD)
|
||
|
docker build -t lihe-control.com/iot-www:${BRANCH}-${COMMIT_SHA1:0:8}-${BUILD_DATE} -f Dockerfile .
|