Przeglądaj źródła

update build.sh

reghao 1 miesiąc temu
rodzic
commit
8210ffd221
2 zmienionych plików z 3 dodań i 6 usunięć
  1. 1 4
      build.sh
  2. 2 2
      docker-compose.yml

+ 1 - 4
build.sh

@@ -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}

+ 2 - 2
docker-compose.yml

@@ -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