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。

相关推荐
码流怪侠8 小时前
2026年8月GitHub热榜深度拆解:Agent Skills席卷开源圈,一个“技能包“收割5万星
算法·程序员·github
m4Rk_8 小时前
【论文阅读】Agent 记忆机制(47):Nemori——用“预测误差”判断什么经验值得被记住
论文阅读·人工智能·学习·开源·github
其实防守也摸鱼8 小时前
接口审计:从原理到实践的万字深度指南
数据库·安全·自动化·github·copilot
TunerT_TQ9 小时前
Microsoft |Playwright CLI 源码静态审阅:从 5 个文件看浏览器自动化工具的工程边界
后端·开源·github
JavaGuide10 小时前
84.5K+ Star!这个开源编程 Agent 控制台,能统一管理 Codex、Claude Code,DeepSeek Harness 也能接入
后端·github
量化小c11 小时前
一行代码查 BTCUSDT 和 AAPL 最新价?QuantDash 统一多市场实时行情接口实战
后端·算法·github
峰向AI11 小时前
Anthropic 工程师每天都在用的小工具:核心代码只有四行,26万次浏览
github
fthux11 小时前
被主流遮住的世界:那些不常见却值得认识的编程语言
人工智能·ai·开源·github
高频因子挖掘机15 小时前
QuantDash 成交量单位统一实战:从“手”到“股”的跨市场量化数据清洗全流程
后端·算法·github