Files
nexus/wiki/entities/GitHub Actions.md
2026-05-03 05:42:12 +08:00

46 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "GitHub Actions"
type: entity
tags: [CI/CD, Automation, DevOps]
sources: [engineering-devops-automator]
last_updated: 2026-05-01
---
# GitHub Actions
## 基本信息
- **类型**CI/CD 平台
- **开发商**GitHub (Microsoft)
- **官网**https://github.com/features/actions
## 定义
GitHub Actions 是 GitHub 提供的自动化工作流平台,支持在 GitHub 仓库内构建、测试和部署代码,实现持续集成和持续交付。
## 核心组件
- **Workflow**:自动化工作流,定义在 `.github/workflows/` 目录
- **Job**:工作流中的一个执行单元
- **Step**Job 中的具体步骤,可以是 shell 命令或 Action
- **Action**:可复用的工作流步骤,可以是社区构建或官方维护
- **Runner**:执行 Job 的虚拟机GitHub 托管或自托管)
## 在 DevOps Automator 中的角色
- DevOps Automator 默认使用的 CI/CD 平台
- 用于构建端到端流水线security-scan → test → build → deploy
- 支持 Blue-Green 部署的自动化执行
## 相关概念
- [[CI/CD Pipeline]]
- [[Blue-Green Deployment]]
- [[Zero-Downtime Deployment]]
## 相关工具
- Jenkins开源 CI/CD
- GitLab CIGitLab 内置 CI/CD
- ArgoCDGitOps 持续交付)
- AtlantisTerraform CI/CD 自动化)
## Aliases
- GitHub Actions
- GHA
- GitHub Workflows