Skip to content

Run mirror script as dry-run on non-default branch

Jason Plum requested to merge refine-ci-rules into main

Summary

Make it safer to have merge request pipelines to this repository

When not on the default branch:

  • run for all commits
  • DRY_RUN=1 so we're not pushing to the registry

When on the default branch:

  • run manually

Additionally, add mkdir to the dry-run behavior to prevent complaints of directories not existing when an image has a sub-path. (e.g. nginx-ingress/controller:TAG)

Edited by Jason Plum

Merge request reports