Yikun opened a new pull request, #37402: URL: https://github.com/apache/spark/pull/37402
### What changes were proposed in this pull request? Create separate static image tag for infra cache ### Why are the changes needed? Currently, we put the **static image** and **cache** together in same tag like [`ghcr.io/apache/spark/apache-spark-github-action-image-cache:master`](https://github.com/apache/spark/pkgs/container/spark%2Fapache-spark-github-action-image-cache/versions). Cache and static image occupy separate image hash and same image tags. this bring some problem in below cases: - **Debug job with static docker images**, they have to find hash. If use cache directly, will raise something like: ``` yikun-x86:~# docker run -ti ghcr.io/yikun/apache-spark-github-action-image-cache:master Unable to find image 'ghcr.io/yikun/apache-spark-github-action-image-cache:master' locally master: Pulling from yikun/apache-spark-github-action-image-cache docker: no matching manifest for linux/amd64 in the manifest list entries. ``` - **Use static image in CI**, such as for some reason we want to switch static image temporarily. - **Easy to see history for last cache**, such as system deps/lib. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? - Local test: https://github.com/Yikun/spark/pull/144, and statich image tag push [passed](https://github.com/Yikun/spark/runs/7664266955?check_suite_focus=true#step:6:212) - Run static image: ``` root@yikun-x86:~# docker run -ti ghcr.io/yikun/apache-spark-github-action-image-cache:master-static Unable to find image 'ghcr.io/yikun/apache-spark-github-action-image-cache:master-static' locally master-static: Pulling from yikun/apache-spark-github-action-image-cache Digest: sha256:5198fd8111c925b7c92d04427268bcb0e5574bb72cef09808076595f3372bf7b Status: Downloaded newer image for ghcr.io/yikun/apache-spark-github-action-image-cache:master-static root@3550e09e0e93:/# exit ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
