Skip to content

Commit 88a298c

Browse files
committed
Properly get arn.
1 parent c59ba03 commit 88a298c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/input_files/build.yaml.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ publish-layer-{{ $environment_name }} ({{ $runtime.name }}-{{ $runtime.arch }}):
179179
script:
180180
- STAGE={{ $environment_name }} PYTHON_VERSION={{ $runtime.python_version }} ARCH={{ $runtime.arch }} ./ci/publish_layers.sh | tee publish.log
181181
# Extract the arn from the publish log to be used as envvar in e2e tests
182-
- echo "PYTHON_{{ $runtime.python_version | strings.ReplaceAll "." "" }}_VERSION=$(grep -oP 'Published arn \K\.*' publish.log)" > {{ $dotenv }}
182+
- layer_arn="$(grep 'Published arn' publish.log | grep -oE 'arn:aws:lambda:.*:\d+')"
183+
- echo "Found published arn: $layer_arn"
184+
- echo "PYTHON_{{ $runtime.name | strings.TrimLeft "python" }}_VERSION=$layer_arn" > {{ $dotenv }}
183185

184186
{{- end }}
185187

0 commit comments

Comments
 (0)