Zero config plugin for caching Docker images in Amazon ECR or Google Container Registry
Support globbing in cache-on property (#20)
seek-oss/docker-ecr-cache#v1.5.0:
cache-on:
- '**/package.json'
- 'important/**.*'
additional-build-args
for passing arguments to docker build
#18New:
#11 Use subdirectory (if any) of the Dockerfile as the build context
This is a backward incompatible change that will break COPY commands that are currently specified relative to the repo root, rather than the Dockerfile subdirectory.
Fixed:
#10 Ignore errors when setting ECR lifecycle policy
The lifecycle policy is just a nice-to-have, so we shouldn't blow up builds if it can't be set. This allows the plugin to continue functioning on agents that lack ecr:PutLifecyclePolicy
.
New:
ecr-name
property and caching implementationRelated issues: #7, #8
Includes: #6
Added build-args
property to pass build-time variables:
build-args: NPM_TOKEN
Updated cache-on
property to support strings:
cache-on: one-file-only
---
cache-on:
- file-1
- file-2
Fixed plugin failures when target
property was omitted (v1.1.2)
latest
tag in addition to checksum tag (#5)