We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e9434e commit 4de04e7Copy full SHA for 4de04e7
README.md
@@ -22,7 +22,7 @@ version := vresolver.Compose(
22
vresolver r.Env,
23
vresolver.ECS,
24
vresolver.Fallback("bulk-version"),
25
-)("ECS_CONTAINER_METADATA_FILE")
+)(vresolver.ECSMetadataFileEnvVar)
26
27
```
28
ecs.go
@@ -6,6 +6,10 @@ import (
6
"strings"
7
)
8
9
+// ECSMetadataFileEnvVar contains the default env var
10
+// name that points to the container metadata file
11
+const ECSMetadataFileEnvVar = "ECS_CONTAINER_METADATA_FILE"
12
+
13
// ECS extracts the tag of the Docker image in use.
14
// See AWS ECS Container Metadata File: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-metadata.html
15
func ECS(file string) string {
0 commit comments