You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(docker-build): make image-tag and dockerfile optional
feat(docker-build): allow dry-runs by always running build (even if push is disabled)
docs(docker-build): fix bad workflow reference
fix(docker-build): fix sarif security-report
docs(docker-build): fix documentation
Copy file name to clipboardExpand all lines: docker-build/README.md
+31-50Lines changed: 31 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,40 @@
1
1
# 🐳 Docker Build Workflow
2
2
3
3
## 🔍 Overview
4
+
4
5
This reusable GitHub Actions workflow automates the process of building and pushing Docker images to Docker Hub. It simplifies the Docker build process in your CI/CD pipeline by handling authentication, building, and tagging in a standardized way. Perfect for teams looking to streamline their containerization workflow with minimal configuration.
5
6
6
7
## ✨ Features
8
+
7
9
- 🔐 Securely authenticates with Docker Hub using best practices
8
10
- 🏗️ Builds optimized Docker images from a specified Dockerfile
9
11
- 🏷️ Intelligently tags and pushes images to Docker Hub
12
+
- 🔎 Scan for vulnerabilities
13
+
- 👍 Lint dockerfile
10
14
- 🛡️ Handles authentication securely using GitHub Secrets
11
15
- 🚀 Optimizes build performance with layer caching
12
16
- 📦 Supports multi-platform builds (AMD64, ARM64)
13
17
14
18
## ⚙️ Inputs
15
19
16
-
| Name | Description | Required | Default |
17
-
|------|-------------|----------|---------|
18
-
|`dockerfile`| Path to the Dockerfile to build (e.g., './Dockerfile', './docker/Dockerfile') | Yes | - |
19
-
|`tag`| Tag to apply to the built image (e.g., 'myimage:latest', 'myorg/myimage:v1.2.3') | Yes | - |
0 commit comments