You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,39 @@ steps:
105
105
- docker#v3.8.0
106
106
```
107
107
108
+
### Building on the resulting image
109
+
110
+
The resulting image are exported as environment variables:
111
+
112
+
- `BUILDKITE_PLUGIN_DOCKER_IMAGE`(or whatever is specified per [changing the name of exported variable](#changing-the-name-of-exported-variable)) for the combined `image:tag` value
113
+
- `BUILDKITE_PLUGIN_DOCKER_ECR_CACHE_EXPORT_IMAGE`for the `image` by itself
114
+
- `BUILDKITE_PLUGIN_DOCKER_ECR_CACHE_EXPORT_TAG`for the `tag` by itself
115
+
116
+
These variables can be used by subsequent plugins and commands in the same build step.
117
+
For example, you may have a command that propagates these variables to another Docker build command:
Your `Dockerfile.secondary` can then [dynamically use these args](https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact):
0 commit comments