-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[semver:minor] use circleCI's default docker version by default for r…
…emote-docker (#51) use circleCI's default docker version by default for remote-docker
- Loading branch information
MiK
authored
Oct 17, 2022
1 parent
267603e
commit a1e9a10
Showing
5 changed files
with
65 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
description: > | ||
This command wraps the built-in setup_remote_docker to make it work with optional version parameter. | ||
parameters: | ||
docker_version: | ||
type: string | ||
default: '' | ||
docker_layer_caching: | ||
type: boolean | ||
default: true | ||
|
||
steps: | ||
# pass the version if it was specified... | ||
- when: | ||
condition: | ||
matches: | ||
# check whether non-empty string | ||
pattern: '.+' | ||
value: << parameters.docker_version >> | ||
steps: | ||
- setup_remote_docker: | ||
version: << parameters.docker_version >> | ||
docker_layer_caching: << parameters.docker_layer_caching >> | ||
# ... or use default version otherwise | ||
- unless: | ||
condition: | ||
matches: | ||
# check whether non-empty string | ||
pattern: '.+' | ||
value: << parameters.docker_version >> | ||
steps: | ||
- setup_remote_docker: | ||
docker_layer_caching: << parameters.docker_layer_caching >> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters