Skip to content

Commit 021eb23

Browse files
Replace commit branch with project name
1 parent 14e4cae commit 021eb23

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

ci/input_files/build.yaml.tpl

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ build-layer ({{ $runtime.name }}-{{ $runtime.arch }}):
5353
variables:
5454
CI_ENABLE_CONTAINER_IMAGE_BUILDS: "true"
5555
script:
56-
- echo $UPSTREAM_COMMIT_BRANCH
5756
- PYTHON_VERSION={{ $runtime.python_version }} ARCH={{ $runtime.arch }} ./scripts/build_layers.sh
5857

5958
check-layer-size ({{ $runtime.name }}-{{ $runtime.arch }}):
@@ -112,7 +111,7 @@ sign-layer ({{ $runtime.name }}-{{ $runtime.arch }}):
112111
tags: ["arch:amd64"]
113112
image: registry.ddbuild.io/images/docker:20.10-py3
114113
rules:
115-
- if: $UPSTREAM_COMMIT_BRANCH
114+
- if: $UPSTREAM_PROJECT_NAME == "dd-trace-py"
116115
when: never
117116
- if: '$CI_COMMIT_TAG =~ /^v.*/'
118117
when: manual
@@ -145,7 +144,7 @@ publish-layer-{{ $environment_name }} ({{ $runtime.name }}-{{ $runtime.arch }}):
145144
tags: ["arch:amd64"]
146145
image: registry.ddbuild.io/images/docker:20.10-py3
147146
rules:
148-
- if: $UPSTREAM_COMMIT_BRANCH
147+
- if: $UPSTREAM_PROJECT_NAME == "dd-trace-py"
149148
when: never
150149
- if: '"{{ $environment_name }}" == "sandbox" && $REGION == "{{ $e2e_region }}" && "{{ $runtime.arch }}" == "amd64"'
151150
when: on_success
@@ -180,7 +179,6 @@ publish-layer-{{ $environment_name }} ({{ $runtime.name }}-{{ $runtime.arch }}):
180179
before_script:
181180
- EXTERNAL_ID_NAME={{ $environment.external_id }} ROLE_TO_ASSUME={{ $environment.role_to_assume }} AWS_ACCOUNT={{ $environment.account }} source ./ci/get_secrets.sh
182181
script:
183-
- echo $UPSTREAM_COMMIT_BRANCH
184182
- STAGE={{ $environment_name }} PYTHON_VERSION={{ $runtime.python_version }} ARCH={{ $runtime.arch }} DOTENV={{ $dotenv }} ./ci/publish_layers.sh
185183

186184
{{- end }}
@@ -194,23 +192,22 @@ publish-pypi-package:
194192
before_script: *python-before-script
195193
cache: []
196194
rules:
197-
- if: $UPSTREAM_COMMIT_BRANCH
195+
- if: $UPSTREAM_PROJECT_NAME == "dd-trace-py"
198196
when: never
199197
- if: '$CI_COMMIT_TAG =~ /^v.*/'
200198
when: manual
201199
needs: {{ range $runtime := (ds "runtimes").runtimes }}
202200
- sign-layer ({{ $runtime.name }}-{{ $runtime.arch}})
203201
{{- end }}
204202
script:
205-
- echo $UPSTREAM_COMMIT_BRANCH
206203
- ./ci/publish_pypi.sh
207204

208205
layer bundle:
209206
stage: build
210207
tags: ["arch:amd64"]
211208
image: registry.ddbuild.io/images/docker:20.10
212209
rules:
213-
- if: $UPSTREAM_COMMIT_BRANCH
210+
- if: $UPSTREAM_PROJECT_NAME == "dd-trace-py"
214211
when: never
215212
needs:
216213
{{ range (ds "runtimes").runtimes }}
@@ -235,7 +232,7 @@ signed layer bundle:
235232
image: registry.ddbuild.io/images/docker:20.10-py3
236233
tags: ["arch:amd64"]
237234
rules:
238-
- if: $UPSTREAM_COMMIT_BRANCH
235+
- if: $UPSTREAM_PROJECT_NAME == "dd-trace-py"
239236
when: never
240237
- if: '$CI_COMMIT_TAG =~ /^v.*/'
241238
needs:

0 commit comments

Comments
 (0)