gitlab--yml配置文件

发布日期:2022-03-02 阅读量:1371

1. 项目根目录新建gitlab-ci.yml文件

    stages: 
      - build
      - test
      - deploy

    build-job:
      stage: build
      tags:
        - build
      only:
        - master
      script:
        - echo "Compiling the code..."
        - echo "Compile complete."