docker-ci-automation

BretFisherUnlicense更新放缓

一套用 Docker 官方 GitHub Actions 搭建 CI/CD 流水线的示例集合,演示如何自动构建、测试和推送镜像,适合照着抄作业。

GitHub Actions automation examples with Docker's official actions

暂无版本359star380fork同步于 2026-11-07 07:32 UTC

怎么上手

由 README 提炼,执行前请确认
直接 fork 或克隆仓库后查看 .github/workflows 目录中的示例工作流
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用 Docker 官方 GitHub Actions 搭建 CI 流水线的分步示例仓库,从基础构建到多平台、CVE 扫描逐步加码

一套用 Docker 官方 GitHub Actions 搭建 CI/CD 流水线的示例集合,演示如何自动构建、测试和推送镜像,适合照着抄作业。

核心能力

  • 按编号从基础 Docker 构建到并行化共 11 个递进示例
  • 演示 Buildx 缓存与多平台构建配置
  • 用 Metadata Action 为镜像生成标签与元数据
  • 集成 Trivy 做 CVE 扫描与安全报告
  • 加入单元、集成与 k3d Kubernetes 冒烟测试

容易踩的坑

示例依赖 Docker 官方 Actions 与 Trivy、Super-Linter、k3d 等第三方 Action,需在仓库中启用对应权限;多平台构建依赖 QEMU 与 Buildx,需先执行 Setup QEMU 和 Setup Buildx 步骤;推送镜像需配置 Docker Hub 等 registry 的登录凭据

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Automation with Docker for CI Workflows

    Lint Code Base

    For Docker Community All Hands 2022

    All-Hands Automation with Docker

    Watch the walkthrough of this repo: https://www.youtube.com/watch?v=aZzV6X7XhyI

    See this repositories' .github/workflows directory for the below example workflows, ordered by number, simple to complex.

    These examples are focused on five of Docker's official GitHub Actions.

    These examples are based on three workflow diagrams on progressively more complex automation pipelines:

    1. Basic code PR automation workflow
    2. Intermediate code PR automation workflow
    3. Advanced code PR automation workflow

    I also have a LIVE course on learning GitHub Actions for DevOps automation and Argo CD for GitOps-style deployments.

    Example Workflows

    1. Basic Docker build
    2. Adding BuildKit cache
    3. Adding multi-platform builds
    4. Adding metadata to images
    5. Adding comments with image tags to PRs
    6. Adding CVE scanning
    7. Adding CVE security reporting
    8. Adding unit testing
    9. Adding integration testing
    10. Adding Kubernetes smoke tests
    11. Adding job parallelizing for mucho speed

    GitHub Actions shown in these examples

    This repository is part of my example DevOps repos on GitHub Actions

    More reading

    Docker Build/Push Action advanced examples My full list of container examples and tools

    🎉🎉🎉 Join my container DevOps community 🎉🎉🎉