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:ci
Explanation

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.
OpenIn sheetyamlsame section
Python CI workflow
Set up Python, install dependencies, and run tests.
OpenIn sheetyamlsame section
Create a GitHub release on tag push
Publish a release whenever a version tag is pushed.
Publish an npm package
Publish to npm from GitHub Actions.
Deploy only from main after tests
Gate deployments on successful CI from the main branch.