beacon-biosignals/Docker Build

Build a Docker image while utilize layer caching from the image repository.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Mar 3, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: beacon-biosignals/docker-build@2fe0a47c7b40bd141024ec6e0abef83b240b6201 # v1.8.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
image-repositoryThe Docker image repository to push the build image and cached layers.yes
contextThe Docker build context directory..
dockerfilePath to the Dockerfile relative to the `working-directory`. Defaults to `${context}/Dockerfile`.""
build-argsList of build-time variables.no
build-secretsList of secrets to expose to the build.no
from-scratchDo not read from the cache when building the image. Writes to caches will still occur.false
cache-mount-idsList of build cache mount IDs or targets to preserve across builds. By default the IDs are determined from the Dockerfile as specified in `dockerfile`.""
use-layer-cachingStore Docker layer cache data in the `image-repository` to accelerate image building. These cache images are stored using the "cache-*" tag. Typically, should be enabled but it can be useful to disable for debugging purposes.true
use-mount-cachingStore data contained within `--mount=type=cache` in GitHub Actions cache entries such that it can be used between image builds in CI workflows. Typically, should be enabled but it can be useful to disable for debugging purposes.true
namedescription
imageReference to the build image including the digest.
image-repositoryThe Docker image repository where the image was pushed to.
digestThe built Docker image digest.
tagsJSON list of tags associated with the built Docker image.
commit-shaThe Git commit SHA used to build the image.