File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 19
19
description : ' (optional) amd64 or arm64'
20
20
required : false
21
21
type : string
22
+ runtimes :
23
+ description : ' (optional) a space delimited list of compatible runtimes (from https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html)'
24
+ required : false
25
+ type : string
22
26
release-group :
23
27
description : ' Release to dev or prod? "prod" yields empty value. (Default: dev)'
24
28
required : true
47
51
48
52
if [[ -n "${{ inputs.architecture }}" ]]; then
49
53
LAYER_NAME=$LAYER_NAME-${{ inputs.architecture }}
54
+ ARCH=$(echo "${{ inputs.architecture }}" | sed -r 's/amd64/x86_64/g')
55
+ else
56
+ ARCH="x86_64 arm64"
57
+ fi
58
+ echo "ARCH=$ARCH" >> $GITHUB_ENV
59
+
60
+ if [[ -n "${{ inputs.runtimes }}" ]]; then
61
+ RUNTIMES="--compatible-runtimes ${{ inputs.runtimes }}"
50
62
fi
63
+ echo "RUNTIMES=$RUNTIMES" >> $GITHUB_ENV
51
64
52
65
if [[ "${{ inputs.release-group }}" != "prod" ]]; then
53
66
LAYER_NAME=$LAYER_NAME-${{ inputs.release-group }}
80
93
aws lambda publish-layer-version \
81
94
--layer-name $LAYER_NAME \
82
95
--license-info "Apache 2.0" \
96
+ --compatible-architectures $ARCH $RUNTIMES \
83
97
--zip-file fileb://${{ inputs.artifact-name }} \
84
98
--query 'LayerVersionArn' \
85
99
--output text
Original file line number Diff line number Diff line change 71
71
layer-name : opentelemetry-javaagent
72
72
component-version : ${{needs.build-layer.outputs.JAVAAGENT_VERSION}}
73
73
# architecture:
74
+ runtimes : java8 java8.al2 java11 java17
74
75
release-group : dev
75
76
aws_region : ${{ matrix.aws_region }}
76
77
secrets : inherit
Original file line number Diff line number Diff line change 71
71
layer-name : opentelemetry-nodejs
72
72
component-version : ${{needs.build-layer.outputs.NODEJS_VERSION}}
73
73
# architecture:
74
+ runtimes : nodejs14.x nodejs16.x nodejs18.x
74
75
release-group : dev
75
76
aws_region : ${{ matrix.aws_region }}
76
77
secrets : inherit
You can’t perform that action at this time.
0 commit comments