File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -186,3 +186,49 @@ publish-pypi-package:
186186 { {- end } }
187187 script:
188188 - ./ci/publish_pypi.sh
189+
190+ layer bundle:
191+ stage: build
192+ tags: ["arch:amd64"]
193+ image: registry.ddbuild.io/images/docker:20.10
194+ needs:
195+ { { range (ds " runtimes" ).runtimes } }
196+ - build-layer ({ { .name } }-{ { .arch } })
197+ { { end } }
198+ dependencies:
199+ { { range (ds " runtimes" ).runtimes } }
200+ - build-layer ({ { .name } }-{ { .arch } })
201+ { { end } }
202+ artifacts:
203+ expire_in: 1 hr
204+ paths:
205+ - datadog_lambda_py-bundle-${ CI_JOB_ID} /
206+ name: datadog_lambda_py-bundle-${ CI_JOB_ID}
207+ script:
208+ - rm -rf datadog_lambda_py-bundle-${ CI_JOB_ID}
209+ - mkdir -p datadog_lambda_py-bundle-${ CI_JOB_ID}
210+ - cp .layers/datadog_lambda_py-*.zip datadog_lambda_py-bundle-${ CI_JOB_ID}
211+
212+ signed layer bundle:
213+ stage: sign
214+ image: registry.ddbuild.io/images/docker:20.10-py3
215+ tags: ["arch:amd64"]
216+ rule:
217+ - if: '$CI_COMMIT_TAG =~ /^v.*/'
218+ needs:
219+ { { range (ds " runtimes" ).runtimes } }
220+ - sign-layer ({ { .name } }-{ { .arch } })
221+ { { end } }
222+ dependencies:
223+ { { range (ds " runtimes" ).runtimes } }
224+ - sign-layer ({ { .name } }-{ { .arch } })
225+ { { end } }
226+ artifacts:
227+ expire_in: 1 day
228+ paths:
229+ - datadog_lambda_py-signed-bundle-${ CI_JOB_ID} /
230+ name: datadog_lambda_py-signed-bundle-${ CI_JOB_ID}
231+ script:
232+ - rm -rf datadog_lambda_py-signed-bundle-${ CI_JOB_ID}
233+ - mkdir -p datadog_lambda_py-signed-bundle-${ CI_JOB_ID}
234+ - cp .layers/datadog_lambda_py-*.zip datadog_lambda_py-signed-bundle-${ CI_JOB_ID}
You can’t perform that action at this time.
0 commit comments