@@ -2,10 +2,7 @@
commit_id=`git rev-parse HEAD | cut -c 1-8`
image="registry.cn-chengdu.aliyuncs.com/tnb028/tnbm:${commit_id}"
-image="tnbm:12345678"
npm run build
docker build -t ${image} .
-#docker push ${image}
-#rm -rf dist
-docker compose up -d
+docker push ${image}
@@ -1,6 +1,6 @@
services:
- ops-app:
- image: tnbm:12345678
+ tnbm:
+ image: registry.cn-chengdu.aliyuncs.com/tnb028/tnbm:12345678
container_name: tnbm
restart: always
network_mode: host