การตั้งค่า CI pipeline เบื้องต้น

CI/CD สำหรับ Machine Learning

Ravi Bhadauria

Machine Learning Engineer

โครงสร้าง GitHub Actions workflow

# Name of the workflow
name: CI

# Events that trigger workflow on: push: branches: [ "main" ]
CI/CD สำหรับ Machine Learning

โครงสร้าง GitHub Actions workflow

# 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 สำหรับ Machine Learning

โครงสร้าง GitHub Actions workflow

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 สำหรับ Machine Learning

สร้าง GitHub repository

ภาพหน้า https://github.com/new สำหรับสร้าง repository ใหม่

CI/CD สำหรับ Machine Learning

ตั้งค่า GitHub Actions

CI/CD สำหรับ Machine Learning

ตั้งค่า GitHub Action แบบ "Hello, World!"

ภาพแสดงแท็บ Actions บนหน้า landing ของ repository

CI/CD สำหรับ Machine Learning

ตั้งค่า GitHub Action แบบ "Hello, World!"

ภาพแสดงแท็บ Configure บนหน้า actions ของ repository

CI/CD สำหรับ Machine Learning

ตั้งค่า GitHub Action แบบ "Hello, World!"

ภาพ Hello World Action ใน web editor พร้อมปุ่ม commit changes

CI/CD สำหรับ Machine Learning

ตั้งค่า GitHub Action แบบ "Hello, World!"

ภาพกล่องโต้ตอบ commit changes สำหรับเขียนข้อความ commit

CI/CD สำหรับ Machine Learning

ตรวจสอบการรัน GitHub Actions

ภาพแสดง banner แจ้งเสร็จสิ้นของ action บนหน้า landing ของ repository

CI/CD สำหรับ Machine Learning

ตรวจสอบการรัน GitHub Actions

ภาพหน้า actions แสดง workflow ที่สำเร็จ

ภาพขั้นตอน build ของ workflow ที่สำเร็จ

CI/CD สำหรับ Machine Learning

การตรวจสอบ log

ภาพ log ของ workflow ที่สำเร็จ แสดงขั้นตอนการทำงาน

CI/CD สำหรับ Machine Learning

มาฝึกกันเถอะ!

CI/CD สำหรับ Machine Learning

Preparing Video For Download...