Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enabling docker layer caching on docker-build command #66

Merged
merged 1 commit into from
May 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/commands/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ parameters:
pre-push-steps:
type: steps
default: []
use-docker-layer-caching:
type: boolean
default: true

steps:
- checkout
- setup_remote_docker
- setup_remote_docker:
docker_layer_caching: << parameters.use-docker-layer-caching >>

- when:
condition:
Expand Down
4 changes: 4 additions & 0 deletions src/jobs/docker-build-ecr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ parameters:
pre-push-steps:
type: steps
default: []
use-docker-layer-caching:
type: boolean
default: true

executor:
name: << parameters.executor-name >>
Expand All @@ -44,3 +47,4 @@ steps:
push: << parameters.push >>
pre-build-steps: << parameters.pre-build-steps >>
pre-push-steps: << parameters.pre-push-steps >>
use-docker-layer-caching: << parameters.use-docker-layer-caching >>
4 changes: 4 additions & 0 deletions src/jobs/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ parameters:
pre-push-steps:
type: steps
default: []
use-docker-layer-caching:
type: boolean
default: true

executor:
name: << parameters.executor-name >>
Expand All @@ -44,3 +47,4 @@ steps:
push: << parameters.push >>
pre-build-steps: << parameters.pre-build-steps >>
pre-push-steps: << parameters.pre-push-steps >>
use-docker-layer-caching: << parameters.use-docker-layer-caching >>