wszhyWx/build-image.sh

7 lines
208 B
Bash
Raw Normal View History

2023-10-08 07:25:08 +00:00
#!/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 .