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 Login: sign in to a Docker registry.
- Docker Setup Buildx: initiates a BuildKit builder.
- Docker Metadata action: extracts metadata from Git reference and GitHub events.
- Docker Setup QEMU: installs QEMU static binaries for multi-arch builds.
- Docker Buildx Bake: enables using high-level builds with Bake.
- 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:
Get started with GitHub Actions
The Introduction 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.