gitlab - .gitlab-ci.yml 如何修复这个配置更好 *gitlab-tunner without docker"
问题描述
我在我的 gitlab 上有这个配置,这个配置在我安装了一些节点包并将 package.json 推送到 gitlab repo 之前是有效的,我得到了错误。
如果我只是更新我的 /pages/index.vue 就可以了。我使用 gitlab-runner 和 ssh 而没有 docker
这是我的配置:
before_script:
- echo "Before script"
- cd /var/www/stagging.domain.com/public_html/client
build:
stage: build
script:
- echo "Run build"
- git pull origin dev
- yarn install
test:
stage: test
script:
- echo "Run test"
- git pull origin dev
- yarn install
- yarn test
stagging:
stage: deploy
script:
- echo "Deploy stagging"
- git pull origin dev
- yarn install --production
- yarn build
only:
- dev
tags:
- dev
production:
stage: deploy
script:
- cd /var/www/domain.com/public_html/client
- echo "Deploy production"
- git pull origin master
- yarn install --production
- yarn build
only:
- master
tags:
- master
解决方案
推荐阅读
- coq - Coq 中的 bools 和 Prop 有很强的关系吗?
- python - Tensorboard SummaryWriter add_image() 函数中的反转颜色
- visual-studio - Rg.Plugins.Popup - 反复打开弹出窗口时应用程序在 ios 上崩溃
- swift - 在 tableviewcells 中进行计算并在 UILabel 中总结的最佳方法
- css-selectors - Css 选择器适用于 jQuery,但不适用于 css 文件
- java - 确定应用程序启动 Java 后 30 天
- nginx - Nginx 重写 - 斜线结尾
- java - 如何创建 POJO 来处理具有元素数组以及元素数组的 JSON 数据
- jquery - 如何使用 sum 并使用 laravel6 连接 3 个表?
- javascript - 为什么在 CSS 中将元素显示属性设置为 flex 会改变带有 'event.target' 的 JS onclick 事件的行为?