wszhyWx/build-image.sh
wmsjhappy@gmail.com 5c44f7060e add note
2023-10-08 15:25:08 +08:00

7 lines
208 B
Bash
Executable File

#!/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 .