Skip to content

Commit 547c054

Browse files
committed
Combine lines again.
1 parent e73e4fe commit 547c054

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/input_files/build.yaml.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ publish-layer-{{ $environment_name }} ({{ $runtime.name }}-{{ $runtime.arch }}):
178178
- EXTERNAL_ID_NAME={{ $environment.external_id }} ROLE_TO_ASSUME={{ $environment.role_to_assume }} AWS_ACCOUNT={{ $environment.account }} source ./ci/get_secrets.sh
179179
script:
180180
- STAGE={{ $environment_name }} PYTHON_VERSION={{ $runtime.python_version }} ARCH={{ $runtime.arch }} ./ci/publish_layers.sh | tee publish.log
181-
- layer_arn="$(grep 'Published arn' publish.log | grep -oE 'arn:aws:lambda:.*:\d+')"
182-
- echo "Found published arn: $layer_arn"
183-
- echo "PYTHON_{{ $runtime.name | strings.Trim "python" }}_VERSION=$layer_arn" > {{ $dotenv }}
181+
- echo "PYTHON_{{ $runtime.name | strings.Trim "python" }}_VERSION=$(grep 'Published arn' publish.log | grep -oE 'arn:aws:lambda:.*:\d+')" > {{ $dotenv }}
182+
183+
{{/* Extract the arn from the publish log to be used as envvar in e2e tests */}}
184184

185185
{{- end }}
186186

0 commit comments

Comments
 (0)