Thiết lập pipeline CI cơ bản

CI/CD cho Machine Learning

Ravi Bhadauria

Machine Learning Engineer

Cấu trúc workflow GitHub Actions

# Name of the workflow
name: CI

# Events that trigger workflow on: push: branches: [ "main" ]
CI/CD cho Machine Learning

Cấu trúc workflow GitHub Actions

# Define jobs and runners
jobs:
  build:
    runs-on: ubuntu-latest

# Define steps steps: - name: Run a multi-line script run: | echo Hello, world! echo Add other actions to build, echo test, and deploy your project.
CI/CD cho Machine Learning

Cấu trúc workflow GitHub Actions

name: CI

on:
  push:
    branches: [ "main" ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Run a multi-line script
        run: |
          echo Hello, world!
          echo Add other actions to build,
          echo test, and deploy your project.
CI/CD cho Machine Learning

Tạo kho GitHub

Ảnh trang https://github.com/new nơi tạo kho mới

CI/CD cho Machine Learning

Thiết lập GitHub Actions

CI/CD cho Machine Learning

Thiết lập GitHub Action "Hello, World!"

Ảnh làm nổi bật tab Actions trên trang chính của kho

CI/CD cho Machine Learning

Thiết lập GitHub Action "Hello, World!"

Ảnh làm nổi bật tab Configure trên trang actions của kho

CI/CD cho Machine Learning

Thiết lập GitHub Action "Hello, World!"

Ảnh Action Hello World trong trình soạn thảo web cùng nút commit changes

CI/CD cho Machine Learning

Thiết lập GitHub Action "Hello, World!"

Ảnh hộp thoại commit changes nơi nhập thông điệp commit

CI/CD cho Machine Learning

Kiểm tra lượt chạy GitHub Actions

Ảnh banner sau khi chạy xong action trên trang chính của kho

CI/CD cho Machine Learning

Kiểm tra lượt chạy GitHub Actions

Ảnh trang actions hiển thị workflow thành công

Ảnh bước build của workflow thành công

CI/CD cho Machine Learning

Xem log

Ảnh log của workflow thành công hiển thị các bước

CI/CD cho Machine Learning

Hãy thực hành!

CI/CD cho Machine Learning

Preparing Video For Download...