Gitlab
使用 artifacts 来保存不同job中间产生的文件等

CI/CD Pipeline

- Advantages of Continuous Integration
- Errors are detected early in the development process
- Reduces integration problems
- Allows developers to work faster
- Advantages of Continuous Development
- Ensures that every change is releasable by testing that it can be deployed
- Reduced risk of a new deployment
- Delivers value much faster
创建一个 .gitlab-ci.yml 用来创建 pipelines
# .gitlab-ci.yml
build step:
image: node:10 # 使用一个合适的 docker image 在运行当前这个任务
script:
- npm install # 安装依赖
- ... # 其他安装步骤
artifacts: # 保留当前任务的文件
paths:
- ./public
git 笔记
添加远程仓库,上传代码到远程仓库:
git remote add origin git@gitlab.com:XXX.git
git push -u origin master
网友评论