Skip to content

Use in GitHub jobs the Docker image built by GitLab CI#47

Open
xlamorlette-datadog wants to merge 3 commits intomainfrom
xlamorlette/rationalize-ci-docker-image
Open

Use in GitHub jobs the Docker image built by GitLab CI#47
xlamorlette-datadog wants to merge 3 commits intomainfrom
xlamorlette/rationalize-ci-docker-image

Conversation

@xlamorlette-datadog
Copy link
Copy Markdown
Contributor

@xlamorlette-datadog xlamorlette-datadog commented Mar 30, 2026

At the time of writing, the Docker image used for GitHub CI jobs cannot be built anymore:

It should be done with make push-ci-images.
But this fails because the base image public.ecr.aws/b1o7r7e0/nginx_musl_toolchain:latest is no more available.

To fix this, let's rather use the Docker image built by the GitLab CI.

This is documented in the different GitHub jobs configuration files and in the Makefile. I also documented how to update this CI image in the CI (Apache Module) Confluence page.

By the way, I also added in this Docker image the nodejs npm packages needed for uploading code coverage to Datadog.

We can see that this works fine in a successful job run:

Starting job container
  /usr/bin/docker pull datadog/docker-library:httpd-datadog-ci-28219c0ef3e00f1e3d5afcab61a73a5e9bd2a9b957d7545556711cce2a6262cd
  httpd-datadog-ci-28219c0ef3e00f1e3d5afcab61a73a5e9bd2a9b957d7545556711cce2a6262cd: Pulling from datadog/docker-library
[…]
  Status: Downloaded newer image for datadog/docker-library:httpd-datadog-ci-28219c0ef3e00f1e3d5afcab61a73a5e9bd2a9b957d7545556711cce2a6262cd
[…]

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.12%. Comparing base (3ae56c7) to head (6e6da89).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #47   +/-   ##
=======================================
  Coverage   63.12%   63.12%           
=======================================
  Files           7        7           
  Lines         377      377           
  Branches       49       49           
=======================================
  Hits          238      238           
  Misses        101      101           
  Partials       38       38           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xlamorlette-datadog xlamorlette-datadog force-pushed the xlamorlette/rationalize-ci-docker-image branch 2 times, most recently from b00eef9 to 0854985 Compare March 30, 2026 16:47
@xlamorlette-datadog xlamorlette-datadog force-pushed the xlamorlette/rationalize-ci-docker-image branch from 0854985 to 63d695d Compare March 30, 2026 17:16
@xlamorlette-datadog xlamorlette-datadog changed the title Add, in CI Docker image, dependencies for code coverage upload Use in GitHub jobs the Docker image built by GitLab CI Mar 30, 2026
@xlamorlette-datadog xlamorlette-datadog marked this pull request as ready for review March 30, 2026 17:39
@xlamorlette-datadog xlamorlette-datadog requested a review from a team as a code owner March 30, 2026 17:39
@xlamorlette-datadog xlamorlette-datadog requested review from Anilm3 and removed request for a team March 30, 2026 17:39
group: ${{ (github.event_name == 'pull_request' && format('{0}-{1}', github.workflow, github.ref)) || format('{0}-{1}', github.workflow, github.run_id) }}
cancel-in-progress: true

jobs:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Could we isolate the hash value to a variable and then use that when composing the image below?

Suggested change
env:
ci_image_hash: 28219c0ef3e00f1e3d5afcab61a73a5e9bd2a9b957d7545556711cce2a6262cd
jobs:

Copy link
Copy Markdown

@zacharycmontoya zacharycmontoya left a comment

Choose a reason for hiding this comment

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

LGTM with one suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants