当前位置: 首页 > news >正文

在网站上做漂浮电商网站商品排序分类怎么做

在网站上做漂浮,电商网站商品排序分类怎么做,医疗器械生产许可证,邯郸做企业网站改版服务器说明#xff1a; 192.168.192.120#xff1a;项目服务器 192.168.192.121#xff1a;GitLab 为了可以使用gitlab的cicd功能#xff0c;我们需要先安装GitLab Runner 安装GitLab Runner参考#xff1a; GitLab实现CICD自动化部署_gitlab cidi_程序员xiaoQ的博客-CS… 服务器说明 192.168.192.120项目服务器 192.168.192.121GitLab 为了可以使用gitlab的cicd功能我们需要先安装GitLab Runner 安装GitLab Runner参考 GitLab实现CICD自动化部署_gitlab cidi_程序员xiaoQ的博客-CSDN博客 手动在 GNU/Linux 上安装极狐GitLab Runner | 极狐GitLab   安装好GitLab Runner我们主要编写.gitlab-ci.yml 在GitLab管理员界面找到Settings - CI/CD - Variables添加STAGING_PRIVATE_KEY变量 需要在192.168.192.120服务器执行ssh-keygen生成密钥对其中STAGING_PRIVATE_KEY的值为私钥 在192.168.192.120服务器执行下面操作 1.ssh-keygen不要输入密码直接回车 2.cat ~/.ssh/id_rsa复制私钥到STAGING_PRIVATE_KEY 3.cd /root/.ssh/  cat id_rsa.pub authorized_keys 把 ssh 公钥添加到认证授权文件这样可以不需要输入密码 以上操作参考基于 gitlab 的持续集成2 · 大专栏 gitlab管理后台增加变量 .gitlab-ci.yml内容 # This file is a template, and might need editing before it works on your project. # This is a sample GitLab CI/CD configuration file that should run without any modifications. # It demonstrates a basic 3 stage CI/CD pipeline. Instead of real tests or scripts, # it uses echo commands to simulate the pipeline execution. # # A pipeline is composed of independent jobs that run scripts, grouped into stages. # Stages run in sequential order, but jobs within stages run in parallel. # # For more information, see: https://docs.gitlab.com/ee/ci/yaml/index.html#stages # # You can copy and paste this template into a new .gitlab-ci.yml file. # You should not add this template to an existing .gitlab-ci.yml file by using the include: keyword. # # To contribute improvements to CI/CD templates, please follow the Development guide at: # https://docs.gitlab.com/ee/development/cicd/templates.html # This specific template is located at: # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.ymlbefore_script:- which ssh-agent || ( apt-get update -y apt-get install openssh-client -y )- eval $(ssh-agent -s)- ssh-add (echo $STAGING_PRIVATE_KEY)- echo $STAGING_PRIVATE_KEYstages: # List of stages for jobs, and their order of execution- build- test- deployvariables:PROJECT_NAME: ${CI_PROJECT_NAME}PROJECT_DIR: ${CI_PROJECT_DIR}build-job: # This job runs in the build stage, which runs first.stage: buildscript:- echo ${PROJECT_NAME}- echo ${PROJECT_DIR}- cd ${PROJECT_DIR} cd ..- tar -cf ${PROJECT_NAME}.tar ${PROJECT_NAME}- scp -o StrictHostKeyCheckingno project.tar root192.168.192.120:/root/gitlab/- ssh -o StrictHostKeyCheckingno root192.168.192.120 cd /root/gitlab tar -xf project.tar pwd ls echo exit exit- echo Compiling the code...- echo Compile complete.unit-test-job: # This job runs in the test stage.stage: test # It only starts when the job in the build stage completes successfully.script:- echo Running unit tests... This will take about 60 seconds.- sleep 60- echo Code coverage is 90%lint-test-job: # This job also runs in the test stage.stage: test # It can run at the same time as unit-test-job (in parallel).script:- echo Linting code... This will take about 10 seconds.- sleep 10- echo No lint issues found.deploy-job: # This job runs in the deploy stage.stage: deploy # It only runs when *both* jobs in the test stage complete successfully.environment: productionscript:- echo Deploying application...- echo Application successfully deployed. 部分说明# 不存在ssh-agent就下载安装 which ssh-agent || ( apt-get update -y apt-get install openssh-client -y )# ssh-agent是一个密钥管理器运行ssh-agent以后使用ssh-add将私钥交给ssh-agent保管其他程序需要身份验证的时候可以将验证申请交给ssh-agent来完成整个认证过程 eval $(ssh-agent -s)# ssh-add命令是把专用密钥添加到ssh-agent的高速缓存中,从而提高ssh的认证速度 ssh-add (echo $STAGING_PRIVATE_KEY)# scp -o StrictHostKeyCheckingnossh -o StrictHostKeyCheckingno中的 StrictHostKeyCheckingno去掉对主机的验证检查 scp -o StrictHostKeyCheckingno project.tar root192.168.192.120:/root/gitlab/ ssh -o StrictHostKeyCheckingno root192.168.192.120# 在192.168.192.120服务器执行以下命令 cd /root/gitlab   tar -xf project.tar   pwd   ls   echo exit   exit分支内容执行情况 192.168.192.120服务器上的内容 可能出现的报错 Enter passphrase for /dev/fd/63 error (#1) · Issues · GitLab-examples / ssh-private-key · GitLab [Gitlab CI/CD] Error loading key “/dev/fd/63“: invalid format_wifiiiiiiii的博客-CSDN博客 gitlab-runner构建报错fatal: git fetch-pack: expected shallow listfatal: The remote end hung up unexpect_带着希望活下去的博客-CSDN博客 参考 在 GitLab CI/CD 中通过 SCP 运行 Composer 和 npm 脚本 | 极狐GitLab linux - .gitlab-ci.yml 中最简洁明了的SSH命令描述方式 - IT工具网 ssh远程执行多个命令_ssh远程执行多条命令_IT超人的博客-CSDN博客 lib/gitlab/ci/templates · master · GitLab.org / GitLab FOSS · GitLab 服务器配置gitlab-runner流程问题总结 基于 gitlab 的持续集成2 · 大专栏
http://www.pierceye.com/news/480474/

相关文章:

  • 网站更改文章标题主流跨境电商平台有哪些
  • vue做直播网站上海最繁华的五个区
  • 做网站和微信小程序电子商务网站建设与管理的背景
  • 做网站国内阿里云虚拟主机多少钱东莞常平中学高中部
  • 用.net做购物网站灵山建设局网站
  • 烟台网站设计制作公司电话python购物网站开发流程
  • 医疗网站怎么做seo怎样通过网址浏览自己做的网站
  • 湖北现代城市建设集团网站wordpress用户头像插件
  • 徐州双语网站制作响应式网站开发pdf
  • 怎么做建设网站公司创建一个网站多少钱
  • 好看的扁平化网站wordpress插件编写
  • 深圳网站设计模板ps可以做网站动态图
  • 微信网站制作入门网站开发实施方案进度
  • 网站用户界面设计国内网站建设最好公司
  • 运城做网站费用高吗高端模板建站
  • 凡客诚品网站设计合肥网红打卡地
  • 淘宝网站代理怎么做的广西送变电建设公司铁塔厂网站
  • 自媒体网站开发网站的推广方式包括
  • 教育做的比较好的网站有哪些网站的建设及维护
  • dw设计做网站案例建设网站杭州
  • 做网站认证对网站有什么好处广西网站建设开发团队
  • 建一个网站需要哪些知识无锡大型互联网公司
  • 餐饮公司 网站建设做网站一年大概的盈利
  • 做金融怎么进基金公司网站免费行情软件网站游戏
  • 网站推广解释创立一个网站要多少钱
  • 绍兴专业网站建设公司大型网站建设哪家好
  • 天河网站设计响应式视频网站模板
  • 网站制作老了手机网站模板开发
  • 哪家网站建设比较好海拉尔建网站
  • 丹东网站推广海南行指专业网站开发