Run mirror script as dry-run on non-default branch
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