Skip to content

Extends docker image sync to sync to artifact registry

John Jarvis requested to merge jarv/artifact-registry-sync into master

What does this MR do?

For https://gitlab.com/gitlab-com/gl-infra/reliability/-/issues/16337 this extends the synchronization script to either sync to the .com registry or the artifact registry in GCP.

The docker_image_sync.sh now takes an additional argument, <gitlab-com|artifact-registry> for sync'ing images to either destination.

By default we will always sync to the artifact-registry even for non-published builds so that we can start using this as our primary container source so that we no longer depend on dev. For this reason, we are adding the artifact-registry sync in a new stage.

Related issues

Checklist

See Definition of done.

For anything in this list which will not be completed, please provide a reason in the MR discussion

Required

  • Merge Request Title, and Description are up to date, accurate, and descriptive
  • MR targeting the appropriate branch
  • MR has a green pipeline on GitLab.com

Expected (please provide an explanation if not completing)

  • Test plan indicating conditions for success has been posted and passes
  • Documentation created/updated
  • Integration tests added to GitLab QA
  • The impact any change in container size has should be evaluated
Edited by John Jarvis

Merge request reports