Update the git cache path from woocommerce to automattic
#8022
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WooCommerce iOS has had a
cache-builder.ymlconfiguration file for a while, but the git cache uses the Buildkite organization when uploading the cache instead of the GitHub repo (I discovered that after a lot of troubleshooting when adding caching to Day One 😄). This PR updates therepopath toautomatticinstead ofwoocommerceso that the caches can save correctly.There has been a single git cache file saved from 2022-03-22 saved in the
a8c-repo-mirrors/woocommerce/woocommerce-iosfolder that has been used to update the cache from. These changes make it so the cache can be updated daily and not have to update from the older cache. Thatwoocommercefolder can be removed after this PR is merged.I also created a schedule in Buildkite (WooCommerce iOS > Pipeline Settings > Schedules) to rebuild the cache daily.
How to Test
update/Git-cache-pathfor the branch to buildPIPELINE=cache-builder.ymlin the Environment Variables field (click the Options button to show the field)a8c-repo-mirrors/automattic/woocommerce-iosfor the Git cache file (labeled with today's date) and in thea8c-ci-cachebucket for the pods cache (labeledwoocommerce-ios-specs-reposandwoocommerce-ios-global-pod-cache)