Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ build-layers:
- artifact: ci/build-pipeline.yaml
job: generator
strategy: depend
forward:
pipeline_variables: true
rules:
- when: on_success
- when: on_success
20 changes: 20 additions & 0 deletions ci/input_files/build.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ sign-layer ({{ $runtime.name }}-{{ $runtime.arch }}):
tags: ["arch:amd64"]
image: registry.ddbuild.io/images/docker:20.10-py3
rules:
- if: $UPSTREAM_PROJECT_NAME == "dd-trace-py"
when: never
- if: '$CI_COMMIT_TAG =~ /^v.*/'
when: manual
needs:
Expand Down Expand Up @@ -142,6 +144,8 @@ publish-layer-{{ $environment_name }} ({{ $runtime.name }}-{{ $runtime.arch }}):
tags: ["arch:amd64"]
image: registry.ddbuild.io/images/docker:20.10-py3
rules:
- if: $UPSTREAM_PROJECT_NAME == "dd-trace-py"
when: never
- if: '"{{ $environment_name }}" == "sandbox" && $REGION == "{{ $e2e_region }}" && "{{ $runtime.arch }}" == "amd64"'
when: on_success
- if: '"{{ $environment_name }}" == "sandbox"'
Expand Down Expand Up @@ -188,6 +192,8 @@ publish-pypi-package:
before_script: *python-before-script
cache: []
rules:
- if: $UPSTREAM_PROJECT_NAME == "dd-trace-py"
when: never
- if: '$CI_COMMIT_TAG =~ /^v.*/'
when: manual
needs: {{ range $runtime := (ds "runtimes").runtimes }}
Expand All @@ -200,6 +206,10 @@ layer bundle:
stage: build
tags: ["arch:amd64"]
image: registry.ddbuild.io/images/docker:20.10
rules:
- if: $UPSTREAM_PROJECT_NAME == "dd-trace-py"
when: never
- when: on_success
needs:
{{ range (ds "runtimes").runtimes }}
- build-layer ({{ .name }}-{{ .arch }})
Expand All @@ -223,6 +233,8 @@ signed layer bundle:
image: registry.ddbuild.io/images/docker:20.10-py3
tags: ["arch:amd64"]
rules:
- if: $UPSTREAM_PROJECT_NAME == "dd-trace-py"
when: never
- if: '$CI_COMMIT_TAG =~ /^v.*/'
needs:
{{ range (ds "runtimes").runtimes }}
Expand All @@ -247,6 +259,10 @@ e2e-test:
trigger:
project: DataDog/serverless-e2e-tests
strategy: depend
rules:
- if: $UPSTREAM_PROJECT_NAME == "dd-trace-py"
when: never
- when: on_success
variables:
LANGUAGES_SUBSET: python
# These env vars are inherited from the dotenv reports of the publish-layer jobs
Expand All @@ -267,6 +283,10 @@ e2e-test-status:
image: registry.ddbuild.io/images/docker:20.10-py3
tags: ["arch:amd64"]
timeout: 3h
rules:
- if: $UPSTREAM_PROJECT_NAME == "dd-trace-py"
when: never
- when: on_success
script: |
GITLAB_API_TOKEN=$(aws ssm get-parameter --region us-east-1 --name "ci.${CI_PROJECT_NAME}.serverless-e2e-gitlab-token" --with-decryption --query "Parameter.Value" --out text)
URL="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${CI_PIPELINE_ID}/bridges"
Expand Down
Loading