mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 16:24:25 +08:00
add docker support
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mode=$1;
|
||||
version=`grep "const LAB_VERSION" lab.go | awk -F '=' '{print $2}' | tr -d ' ' | tr -d '"'`;
|
||||
|
||||
if [ "$mode" == "--snapshot" ]; then
|
||||
version="SNAPSHOT-"`date "+%Y%m%d"`;
|
||||
fi
|
||||
|
||||
echo "Building docker image...";
|
||||
docker build -t lab:${version} .
|
||||
Reference in New Issue
Block a user