Skip to content

Commit 46aa105

Browse files
authored
feat(lib-injection): add image deploy jobs (#4159)
Deploy the images to the official registries that will be used by the cluster agent. We only do this when a new tag is pushed (matching v.*) in which we publish the corresponding version tag for the image and also the latest tag.
1 parent f909f7d commit 46aa105

File tree

2 files changed

+36
-5
lines changed

2 files changed

+36
-5
lines changed

.github/workflows/lib-injection.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
name: "Library Injection"
22
on:
33
push:
4-
branches:
5-
- 1.x
6-
pull_request:
7-
branches:
8-
- 1.x
94

105
jobs:
116
build-and-publish-init-image:

.gitlab-ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,39 @@ trigger_microbenchmarking_platform:
4040
UPSTREAM_PROJECT_NAME: $CI_PROJECT_NAME
4141
UPSTREAM_BRANCH: $CI_COMMIT_REF_NAME
4242
UPSTREAM_COMMIT_SHA: $CI_COMMIT_SHA
43+
44+
deploy_to_docker_registries:
45+
stage: deploy
46+
rules:
47+
- if: '$POPULATE_CACHE'
48+
when: never
49+
- if: '$CI_COMMIT_TAG =~ /^v.*/'
50+
when: on_success
51+
- when: manual
52+
allow_failure: true
53+
trigger:
54+
project: DataDog/public-images
55+
branch: main
56+
strategy: depend
57+
variables:
58+
IMG_SOURCES: ghcr.io/datadog/dd-trace-py/dd-lib-python-init:$CI_COMMIT_SHA
59+
IMG_DESTINATIONS: dd-lib-python-init:$CI_COMMIT_TAG
60+
IMG_SIGNING: "false"
61+
62+
deploy_latest_tag_to_docker_registries:
63+
stage: deploy
64+
rules:
65+
- if: '$POPULATE_CACHE'
66+
when: never
67+
- if: '$CI_COMMIT_TAG =~ /^v.*/'
68+
when: on_success
69+
- when: manual
70+
allow_failure: true
71+
trigger:
72+
project: DataDog/public-images
73+
branch: main
74+
strategy: depend
75+
variables:
76+
IMG_SOURCES: ghcr.io/datadog/dd-trace-py/dd-lib-python-init:$CI_COMMIT_SHA
77+
IMG_DESTINATIONS: dd-lib-python-init:latest
78+
IMG_SIGNING: "false"

0 commit comments

Comments
 (0)