GitHub Actions (original) (raw)
Home / Manuals / Docker Build / CI / GitHub Actions
Docker Build GitHub Actions
GitHub Actions is a popular CI/CD platform for automating your build, test, and deployment pipeline. Docker provides a set of official GitHub Actions for you to use in your workflows. These official actions are reusable, easy-to-use components for building, annotating, and pushing images.
The following GitHub Actions are available:
- Build and push Docker images: build and push Docker images with BuildKit.
- Docker Buildx Bake: enables using high-level builds withBake.
- Docker Login: sign in to a Docker registry.
- Docker Setup Buildx: creates and boots a BuildKit builder.
- Docker Metadata action: extracts metadata from Git reference and GitHub events to generate tags, labels, and annotations.
- Docker Setup Compose: installs and sets upCompose.
- Docker Setup Docker: installs Docker CE.
- Docker Setup QEMU: installsQEMU static binaries for multi-platform builds.
- Docker Scout: analyze Docker images for security vulnerabilities.
Using Docker's actions provides an easy-to-use interface, while still allowing flexibility for customizing build parameters.
Examples
If you're looking for examples on how to use the Docker GitHub Actions, refer to the following sections:
- Add image annotations with GitHub Actions
- Add SBOM and provenance attestations with GitHub Actions
- Validating build configuration with GitHub Actions
- Using secrets with GitHub Actions
- GitHub Actions build summary
- Configuring your GitHub Actions builder
- Cache management with GitHub Actions
- Copy image between registries with GitHub Actions
- Export to Docker with GitHub Actions
- Local registry with GitHub Actions
- Multi-platform image with GitHub Actions
- Named contexts with GitHub Actions
- Push to multiple registries with GitHub Actions
- Reproducible builds with GitHub Actions
- Share built image between jobs with GitHub Actions
- Manage tags and labels with GitHub Actions
- Test before push with GitHub Actions
- Update Docker Hub description with GitHub Actions
Get started with GitHub Actions
TheIntroduction to GitHub Actions with Docker guide walks you through the process of setting up and using Docker GitHub Actions for building Docker images, and pushing images to Docker Hub.