Menyiapkan pipeline CI dasar

CI/CD untuk Machine Learning

Ravi Bhadauria

Machine Learning Engineer

Anatomi workflow GitHub Actions

# Name of the workflow
name: CI

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

Anatomi 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 untuk Machine Learning

Anatomi 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 untuk Machine Learning

Buat repositori GitHub

Gambar halaman https://github.com/new untuk membuat repositori baru

CI/CD untuk Machine Learning

Siapkan GitHub Actions

CI/CD untuk Machine Learning

Siapkan GitHub Action "Hello, World!"

Gambar menyoroti tab Actions pada halaman utama repositori

CI/CD untuk Machine Learning

Siapkan GitHub Action "Hello, World!"

Gambar menyoroti tab Configure pada halaman Actions repositori

CI/CD untuk Machine Learning

Siapkan GitHub Action "Hello, World!"

Gambar GitHub Action Hello World di editor web beserta tombol commit changes

CI/CD untuk Machine Learning

Siapkan GitHub Action "Hello, World!"

Gambar dialog commit changes tempat menulis pesan commit

CI/CD untuk Machine Learning

Periksa Run GitHub Actions

Gambar menyoroti banner penyelesaian Action di halaman utama repositori

CI/CD untuk Machine Learning

Periksa Run GitHub Actions

Gambar halaman Actions yang menampilkan workflow berhasil

Gambar langkah build dari workflow yang berhasil

CI/CD untuk Machine Learning

Meninjau Log

Gambar log workflow yang berhasil menampilkan langkah-langkah

CI/CD untuk Machine Learning

Ayo berlatih!

CI/CD untuk Machine Learning

Preparing Video For Download...