iT邦幫忙

2023 iThome 鐵人賽

DAY 14
0
DevOps

CI/CD系列 第 14

Day14:git runner run

  • 分享至 

  • xImage
  •  
stages:          
  - build
  - test
  - deploy


build-job:      
  stage: build
  script:
    - echo "Compiling the code..."
    - echo "Compile complete."
    - chmod +x ./run.sh
    - ./run.sh

lint-test-job:  
  stage: test   
  script:
    - echo "Linting code... This will take about 10 seconds."
    - sleep 10
    - echo "No lint issues found."

deploy-job:     
  stage: deploy  
  environment: production
  script:
    - echo "Deploying application..."
    
run_unit_tests:
  tags:
    - macos
  stage: test
  script:
    - echo "單元測試12"

unning with gitlab-runner 16.1.0 (865283c5)
  on https://gitlab.com/ RwqB7q_7t, system ID: s_c74693d52669
Preparing the "docker" executor
00:09
Preparing environment
00:03
Getting source from Git repository
00:04
Executing "step_script" stage of the job script
00:04
Cleaning up project directory and file based variables
00:03
Job succeeded

這表示您的 CI/CD 配置和作業運行正常。根據您提供的輸出,目前看來一切都運行良好。如果您需要進一步了解作業的細節或檢查作業的執行日誌,可以進一步查看 GitLab CI/CD 頁面或作業詳細信息。


上一篇
Day13:上傳附加檔案
下一篇
Day15:Executor
系列文
CI/CD30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言