build-and-push:
uses: init4tech/actions/.github/workflows/ghcr.yml@main
This workflow builds and pushes a Docker image to GitHub Container Registry (GHCR). It builds multi-platform images for both linux/amd64 and linux/arm64 architectures and generates artifact attestations for supply chain security.
The workflow automatically:
Dockerfileghcr.io/<repository-name>The calling workflow must have the following permissions:
contents: read - To checkout the repositorypackages: write - To push to GHCRattestations: write - To create attestationsid-token: write - For OIDC authenticationghcr.io/<repository-name>