Skip to content

Commit fd8afd0

Browse files
committed
Add sending images to registry.datadoghq.com as well as ghcr
1 parent c2ac1e0 commit fd8afd0

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/release-serverless-init.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,35 @@ jobs:
106106
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest${{ matrix.arrays.tagSuffix }}
107107
provenance: false
108108
platforms: linux/amd64,linux/arm64
109+
110+
replicate-rc-to-registry-datadoghq:
111+
runs-on: ubuntu-22.04
112+
needs: release-serverless-init
113+
if: ${{ github.event.inputs.latestTag == 'no' }}
114+
strategy:
115+
matrix:
116+
variant: [
117+
{tagSuffix: "", name: "standard"},
118+
{tagSuffix: "-alpine", name: "alpine"}
119+
]
120+
name: "Replicate RC to registry.datadoghq.com (${{ matrix.variant.name }})"
121+
steps:
122+
- name: Trigger public-images pipeline for RC
123+
env:
124+
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
125+
run: |
126+
curl --fail --request POST \
127+
--header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" \
128+
--header "Content-Type: application/json" \
129+
--data '{
130+
"ref": "main",
131+
"variables": [
132+
{"key": "IMG_SOURCES", "value": "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.inputs.tag }}${{ matrix.variant.tagSuffix }}"},
133+
{"key": "IMG_DESTINATIONS", "value": "serverless-init-dev:${{ github.event.inputs.tag }}${{ matrix.variant.tagSuffix }}"},
134+
{"key": "IMG_REGISTRIES", "value": "prod"},
135+
{"key": "IMG_SIGNING", "value": "false"}
136+
]
137+
}' \
138+
"https://gitlab.ddbuild.io/api/v4/projects/DataDog%2Fpublic-images/pipeline"
139+
140+
echo "✅ Triggered public-images pipeline for serverless-init-dev:${{ github.event.inputs.tag }}${{ matrix.variant.tagSuffix }}"

0 commit comments

Comments
 (0)