Github有没有类似GitLab CI/CD的功能

0 Preface/Foreword

0.1 GitHub actions

GitLab中的CI/CD是++持续集成和持续交付/部署功能++ ,GitHub中与之相对应是++GitHub Actions++.

1 GitHub Actions

1.1 Github Actions vs GitLab CI/CD

++对照表如下++:

|----------------|----------------|--------------------------|
| 功能 | GitHub Actions | GitLab CI/CD |
| 配置文件 | .gitlab-ci.yml | .github/workflows/*.yml |
| CI(构建、测试) | ✅️ | ✅️ |
| CD(部署) | ✅️ | ✅️ |
| Pipeline (流水线) | ✅️ | ✅️ |
| Runner | GitLab Runner | GitHub Runner |
| 自托管 Runner | ✅️ | ✅️ |
| Docker构建 | ✅️ | ✅️ |
| 定时任务 | ✅️ | ✅️ |
| 手动触发 | ✅️ | ✅️ |
| 矩阵构建 | ✅️ | ✅️ |
| 环境变量/Secrets | ✅️ | ✅️ |

1.2 常见CI/CD场景

  • 自动测试
  • Docker镜像构建并推送
  • 部署到Kubernetes
  • 部署到AWS/Azure/GCP
    • GitHub官方和云厂商都提供了大量现成的Action
      • uses: azure/login@v2
      • uses: aws-actions/configure-aws-credentials@v4

1.3 GitHub Actions的优势

1.3.1 Marektplace非常丰富

GitHub有大量现成插件(Action)

1.3.2 集成度更深

++支持++:

  • pull request自动检查
  • Code Review Gate
  • Branch Protection
  • Release自动发布
  • Dependabot
  • Security Scan (CodeQL)

1.3 GitHub Actions生成artifacts下载方法

++artifacts下载方法++:Actions > 查找workflows > 选择一个workflow > 找到artifacts > 点击下载icon。

相关推荐
wangruofeng10 小时前
一个 Markdown 文件攒下 37k 星,i-have-adhd 给 AI 输出立了 10 条规矩
github·aigc·ai编程
怕浪猫11 小时前
长会话不崩盘:DeepSeek Harness 的上下文压缩与目标管理策略
面试·github·agent
DogDaoDao12 小时前
SimToolReal 解读:用“物体中心“视角重新定义灵巧工具操作
人工智能·机器人·github·关键点·人形机器人·gpt-4o·simtoolreal
993166616 小时前
一个人用 AI 的困局:它从不反对你,所以我让 5 个 AI 开了场圆桌会议
github·deepseek
其实防守也摸鱼18 小时前
每天一个知识点——RCE漏洞
运维·服务器·数据库·windows·安全·github·漏洞
u13013019 小时前
GitHub 热榜项目:日榜(2026-09-12)
github
TunerT_TQ19 小时前
Netflix|一个时代的终结:Hystrix静态工程评测,兼谈微服务容错范式的代际迁移
开源·github·资讯
m4Rk_19 小时前
【论文阅读】Agent 记忆机制(68):Memp——把历史轨迹沉淀为可检索、可纠错的程序性记忆
论文阅读·人工智能·学习·开源·github
峰向AI21 小时前
腾讯开源的AI管理的瑞士军刀:让团队经验自动传承
github
Howie_05261 天前
AI-test-agent(一)刚入门测试也能读懂:一个基于 LangGraph + Playwright 的开源测试工作台
github