Zero config plugin for caching Docker images in Amazon ECR or Google Container Registry
steps:
- command: pnpm test
plugins:
- seek-oss/docker-ecr-cache#v2.2.0:
cache-on:
- .npmrc
- package.json#.dependencies
- package.json#.devDependencies
- package.json#.packageManager
- package.json#.pnpm.overrides
- pnpm-lock.yaml
- docker#v5.10.0:
volumes:
- /workdir/node_modules
See the README section for more details.
Full Changelog: https://github.com/seek-oss/docker-ecr-cache-buildkite-plugin/compare/v2.1.1...v2.2.0
skip-pull-from-cache
option. (#50, @alexandre-bordiere)skip-pull-from-cache
option (#47, @samchungy)steps:
- label: Build Cache
command: ':'
plugins:
- seek-oss/docker-ecr-cache#v2.1.0:
skip-pull-from-cache: true
See the README section for more details.
aws ecr get-login
command in favour of aws ecr get-login-password
steps:
- command: echo wow
plugins:
- seek-oss/docker-ecr-cache#v2.0.0:
region: ap-southeast-2
See the README section for more details.
Note: This release requires AWS CLI v1.17.10 or later installed on your agent
Export cached image and tag as environment variables (#38)
Subsequent commands and plugins in the same build step can now reference the cached image and tag via exported BUILDKITE_PLUGIN_DOCKER_ECR_CACHE_EXPORT_IMAGE
and BUILDKITE_PLUGIN_DOCKER_ECR_CACHE_EXPORT_TAG
environment variables. See the README section for more details.
Support build secrets (#36, #37, @koterpillar, @72636c)
steps:
- command: echo wow
plugins:
- seek-oss/docker-ecr-cache#v1.10.0:
secrets:
- SECRET_ENV
- id=npm,src=.npmrc
See the README section for more details.
Support inline Dockerfiles (#35, @koterpillar)
steps:
- command: echo wow
plugins:
- seek-oss/docker-ecr-cache#v1.10.0:
dockerfile-inline: |
FROM node:16-alpine
WORKDIR /workdir
COPY package.json package-lock.json /workdir
RUN npm install
Support custom build context
(#28, @kkolk)
steps:
- command: echo wow
plugins:
- seek-oss/docker-ecr-cache#v1.9.0:
dockerfile: dockerfiles/test/Dockerfile
context: '.'
See the Docker documentation for more information.
Support Google Container Registry (#26, @petemounce)
steps:
- command: echo wow
plugins:
- seek-oss/docker-ecr-cache#v1.8.0:
registry-provider: gcr
gcp-project: foo-bar-123456
See the README section for more details.
Add support for customising the export variable via export-env-variable
per #23
Support tagging the ECR repository #25
steps:
- command: 'echo wow'
plugins:
- seek-oss/docker-ecr-cache#v1.6.0:
ecr-name: my-unique-repository-name
ecr-tags:
Key: Value
Key2: Value2
- docker#v3.3.0