472af377a4fa31b96cf3c84a71bbfb1039492e79
Bump actions/checkout from 2.4.0 to 3
Docker Build and Push GitHub Actions Workflow
A Reusable Workflow of the Docker GitHub Actions steps. Enhanced with learnings from production use.
Reasons to use this workflow
- Easier to start with than hand-building all the Docker Actions into a single workflow.
- Provides inline docs based on real-world usage of this workflow.
- Gives you inputs so you can reuse this workflow across many repositories and only needing the full workflow stored in a central repository.
Basic workflow steps
- Clone the repository
- Setup QEMU for multi-platform building (buildx) via docker/setup-qemu-action
- Setup buildx (the best image builder) via docker/setup-buildx-action
- Log into Docker Hub and/or GHCR
- Add labels and tags via docker/metadata-action
- Build and push image via docker/build-push-action
Languages
Dockerfile
100%