Use Buildx for modern Docker builds.
Section: Testing and build pipelines
Build a Docker image
yaml
yaml
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: .
push: false
tags: my-app:ciExplanation
This is a common building block for containerized apps and release pipelines.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Testing and build pipelines
Node.js CI workflow
Install dependencies, lint, test, and build a Node project.
Create a GitHub release on tag push
Publish a release whenever a version tag is pushed.
Deploy only from main after tests
Gate deployments on successful CI from the main branch.