Latchkey Docker Cache Build
Version updated for https://github.com/latchkey-dev/docker-cache-action to version v1.
- This action is used across all versions by ? repositories.
Action Type
This is a Composite action.
Go to the GitHub Marketplace to find the latest changes.
Action Summary
The Latchkey Docker Cache Action automates Docker image builds with layer caching by leveraging Amazon Elastic Container Registry (ECR) on Latchkey-managed runners. It detects and configures caching flags to enable efficient builds across ephemeral runner instances, reducing build times and improving performance. On non-Latchkey runners, it gracefully falls back to standard Docker builds without caching.
Release notes
Latchkey Docker Cache Action v1
Build Docker images with automatic ECR-based layer caching on Latchkey managed runners.
Usage
- uses: latchkey-dev/docker-cache-action@v1
with:
context: .
tags: myapp:latest
push: true
Features
- Auto-detects
ECR_CACHE_REPOfrom Latchkey runner environment - Configures BuildKit
--cache-fromand--cache-tofor ECR registry cache - Graceful degradation on non-Latchkey runners (builds normally without cache)
- Supports:
context,dockerfile,tags,push,build-args,target,platforms,cache-mode,cache-tag,extra-cache-from,extra-cache-to - Outputs:
cache-configured,image-digest - Masks build-arg values in logs to prevent secret leakage
- Auto-loads images into local daemon for non-push single-platform builds