Skip to content
Closed
Changes from all 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
32 changes: 32 additions & 0 deletions .github/workflows/release-serverless-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,35 @@ jobs:
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest${{ matrix.arrays.tagSuffix }}
provenance: false
platforms: linux/amd64,linux/arm64

replicate-rc-to-registry-datadoghq:
runs-on: ubuntu-22.04
needs: release-serverless-init
if: ${{ github.event.inputs.latestTag == 'no' }}
strategy:
matrix:
variant: [
{tagSuffix: "", name: "standard"},
{tagSuffix: "-alpine", name: "alpine"}
]
name: "Replicate RC to registry.datadoghq.com (${{ matrix.variant.name }})"
steps:
- name: Trigger public-images pipeline for RC
env:
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
curl --fail --request POST \
--header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love this as a workflow. I think moving this build script to somewhere we could do this whole process in gitlab would be much more clear and wouldn't require maintaining this gitlab token.

Copy link
Contributor Author

@Lewis-E Lewis-E Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attempting to come up with an alternative: DataDog/datadog-agent#44908

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, alternative theoretically works, but can't be in the datadog-agent project. Question is, where...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--header "Content-Type: application/json" \
--data '{
"ref": "main",
"variables": [
{"key": "IMG_SOURCES", "value": "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.inputs.tag }}${{ matrix.variant.tagSuffix }}"},
{"key": "IMG_DESTINATIONS", "value": "serverless-init-dev:${{ github.event.inputs.tag }}${{ matrix.variant.tagSuffix }}"},
{"key": "IMG_REGISTRIES", "value": "prod"},
{"key": "IMG_SIGNING", "value": "false"}
]
}' \
"https://gitlab.ddbuild.io/api/v4/projects/DataDog%2Fpublic-images/pipeline"

echo "✅ Triggered public-images pipeline for serverless-init-dev:${{ github.event.inputs.tag }}${{ matrix.variant.tagSuffix }}"
Loading