-
Notifications
You must be signed in to change notification settings - Fork 5
Build Container
github-actions[bot] edited this page Jul 8, 2026
·
2 revisions
This workflow will build and publish a container image to the GitHub Container Registry. This workflow does the following:
- Setup Docker / Buildx
- Configure GitHub Container Registry and tagging image
- Build and push the container image
- Generate a SBOM (Software Bill of Materials) for the container image and upload them to GitHub
When using the auto-release detection in this workflow, the version in .release.yml must be in unprefixed format (e.g. 1.2.3), not v1.2.3. GitHub Release tags use a v prefix (e.g. v1.2.3), but the v is automatically stripped when comparing against the version file.
Simple:
uses: advanced-security/reusable-workflows/.github/workflows/container.yml@v0.2.0
secrets: inherit
with:
# This is used for tagging the container image.
# It will automatically also set `latest` / `main` + major version `v1` tags.
version: v1.0.0With Settings:
uses: advanced-security/reusable-workflows/.github/workflows/container.yml@v0.2.0
secrets: inherit
with:
# This is used for tagging the container image
version: v1.0.0
# Select the Dockerfile to use
container-file: Dockerfile # Defaults to `Dockerfile`Building / Testing / Publishing:
- Python - Build / Test / Lint
- Container - Build / Publish / Scan / Sign
Linting:
- Markdown Linting
Security:
- Dependency Review
Repository Management:
- 🚧 Labeler