瀏覽代碼

添加构建脚本

reghao 2 年之前
父節點
當前提交
f580c448bb
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      build.sh

+ 7 - 0
build.sh

@@ -0,0 +1,7 @@
+#!/bin/bash
+
+
+commit_id=`git rev-parse --short HEAD`
+#npm run build
+docker build -t docker.reghao.cn/tnb/bili:${commit_id} .
+docker push docker.reghao.cn/tnb/bili:${commit_id}