代码拉取完成,页面将自动刷新
同步操作将从 zhousg/hmmm-backend 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
stages:
- deploy
# http://www.course.itcast.cn:7001
# deploy:
# stage: deploy
# script:
# - cnpm i
# - cp -rf ./dist/. /home/shizhan/docker-data/hmmm-nodejs-new
# - cd /home/shizhan/docker-data/hmmm-nodejs
# - rm -rf /home/shizhan/docker-data/hmmm-nodejs
# - cp -rf ./dist/. /home/shizhan/docker-data/nginx/html/hmmm-admin
# tags:
# - shell-73
# only:
# - product
# docker build -t itcast/hmmm_nodejs .
# docker run -d --net=host --name hmmm-nodejs-server itcast/hmmm_nodejs
# CI 变量
# $CI_DOCKER_REGISTRY_SERVER 镜像服务器
# $CI_DOCKER_REGISTRY_SERVER_USER 账号
# $CI_DOCKER_REGISTRY_SERVER_PASS 密码
# $CI_DOCKER_REGISTRY_SERVER_PROJECT 项目
# build_image:
# stage: build
# script:
# - cnpm i
# - npm run build
# - rm -rf /home/shizhan/docker-data/nginx/html/hmmm-admin
# - cp -rf ./dist/. /home/shizhan/docker-data/nginx/html/hmmm-admin
# - docker build -t itcast/hmmm_vue_admin:$CI_PIPELINE_ID .
# tags:
# - shell-73
# only:
# - product
# deploy_image:
# stage: deploy
# script:
# - sed -i 's/$DOCKER_REGISTRY_SERVER_PROJECT/'$(echo $CI_DOCKER_REGISTRY_SERVER_PROJECT)'/g' ./k8s/4-deployment.yaml
# - sed -i 's/$DOCKER_REGISTRY_SERVER/'$(echo $CI_DOCKER_REGISTRY_SERVER)'/g' ./k8s/4-deployment.yaml
# - sed -i 's/$CI_PROJECT_NAME/'$(echo $CI_PROJECT_NAME)'/g' ./k8s/4-deployment.yaml
# - sed -i 's/$CI_PIPELINE_ID/'$(echo $CI_PIPELINE_ID)'/g' ./k8s/4-deployment.yaml
# - cat ./k8s/4-deployment.yaml
# - kubectl apply -f ./k8s/1-namespace.yaml
# - kubectl apply -f ./k8s/4-deployment.yaml
# - kubectl apply -f ./k8s/5-service.yaml
# - kubectl apply -f ./k8s/6-ingress.yaml
# tags:
# - centos-60 # 172.17.0.60 负责 CD k8s 容器部署
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。