-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (15 loc) · 910 Bytes
/
Makefile
File metadata and controls
17 lines (15 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# The CI image used for some GitHub jobs is built by the GitLab build-ci-image job.
# The hash is computed by this GitLab job from the files used to build the image.
#
# Whenever this image needs to be updated, one should:
# - Get the hash from a run of the GitLab build-ci-image job.
# - Copy this hash here, and in the GitHub workflow files.
# - Run: make replicate-ci-image-for-github.
CI_DOCKER_IMAGE_HASH ?= 28219c0ef3e00f1e3d5afcab61a73a5e9bd2a9b957d7545556711cce2a6262cd
CI_IMAGE_FROM_GITLAB ?= registry.ddbuild.io/ci/httpd-datadog/amd64:$(CI_DOCKER_IMAGE_HASH)
CI_IMAGE_IN_PUBLIC_REPO_FOR_GITHUB ?= datadog/docker-library:httpd-datadog-ci-$(CI_DOCKER_IMAGE_HASH)
.PHONY: replicate-ci-image-for-github
replicate-ci-image-for-github:
docker pull $(CI_IMAGE_FROM_GITLAB)
docker tag $(CI_IMAGE_FROM_GITLAB) $(CI_IMAGE_IN_PUBLIC_REPO_FOR_GITHUB)
docker push $(CI_IMAGE_IN_PUBLIC_REPO_FOR_GITHUB)