소스 검색

添加构建脚本

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}