forked from DataDog/dd-trace-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
93 lines (84 loc) · 2.19 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
stages:
- package
- deploy
- benchmarks
- benchmarks-pr-comment
include:
- remote: https://gitlab-templates.ddbuild.io/apm/packaging.yml
- local: ".gitlab/benchmarks.yml"
variables:
JS_PACKAGE_VERSION:
description: "Version to build for .deb and .rpm. Must be already published in NPM"
.common: &common
tags: [ "runner:main", "size:large" ]
package:
extends: .package
rules:
- if: $JS_PACKAGE_VERSION
when: on_success
- if: '$CI_COMMIT_TAG =~ /^v.*/'
when: on_success
script:
- ../.gitlab/build-deb-rpm.sh
package-arm:
extends: .package-arm
rules:
- if: $JS_PACKAGE_VERSION
when: on_success
- if: '$CI_COMMIT_TAG =~ /^v.*/'
when: on_success
script:
- ../.gitlab/build-deb-rpm.sh
.release-package:
stage: deploy
variables:
PRODUCT_NAME: auto_inject-node
PACKAGE_FILTER: js # product name is "node" but package name ends "js"
deploy_to_reliability_env:
stage: deploy
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: on_success
- when: manual
allow_failure: true
trigger:
project: DataDog/apm-reliability/datadog-reliability-env
variables:
UPSTREAM_BRANCH: $CI_COMMIT_REF_NAME
UPSTREAM_PROJECT_ID: $CI_PROJECT_ID
UPSTREAM_PROJECT_NAME: $CI_PROJECT_NAME
UPSTREAM_COMMIT_SHA: $CI_COMMIT_SHA
deploy_to_docker_registries:
stage: deploy
rules:
- if: '$CI_COMMIT_TAG =~ /^v.*/ || $CI_COMMIT_TAG == "dev"'
when: on_success
- when: manual
allow_failure: true
trigger:
project: DataDog/public-images
branch: main
strategy: depend
variables:
IMG_SOURCES: ghcr.io/datadog/dd-trace-js/dd-lib-js-init:$CI_COMMIT_TAG
IMG_DESTINATIONS: dd-lib-js-init:$CI_COMMIT_TAG
IMG_SIGNING: "false"
RETRY_COUNT: 5
RETRY_DELAY: 300
deploy_latest_to_docker_registries:
stage: deploy
rules:
- if: '$CI_COMMIT_TAG =~ /^v.*/'
when: on_success
- when: manual
allow_failure: true
trigger:
project: DataDog/public-images
branch: main
strategy: depend
variables:
IMG_SOURCES: ghcr.io/datadog/dd-trace-js/dd-lib-js-init:$CI_COMMIT_TAG
IMG_DESTINATIONS: dd-lib-js-init:latest
IMG_SIGNING: "false"
RETRY_COUNT: 5
RETRY_DELAY: 300