docker/build-push-action@v2 ã®ãã£ãã·ã¥æ¹æ³ã¯ cache.md ãèªãã¨åèã«ãªã
â»æ¬è¨äºã¯ docker/[email protected]æç¹ã®æ å ±ãå ã«è¨è¿°ãã¦ãã¾ãã
çµè«ãcache.md ã¨ã¯æ¬¡ã®ãã¨ã§ãã
build-push-action/cache.md at v2.7.0 · docker/build-push-action · GitHub
ã»ããèæ¯ã調ã¹ããã¨ãã¤ãã¤ãã¡ã¢æ¸ããã¦ããã¾ãã
èæ¯
å¯æ¥ã§ Ruby on Rails ã® CI ç°å¢ãä½ãä¸ã§æ¬¡ã®è¨äºãåèã«ãªãã¾ããã
ãããæ®å¿µãªãã¨ã«ãbuildx/BuildKitã©ã³ãã¼ãVMã®ã³ã³ããã¹ãã§ã»ããã¢ããããï¼ã¤ã¾ãDockerã®ãã£ãã·ã¥ãã¨ã¯ã¹ãã¼ãå¯è½ã«ãªããæ£ãããã£ãã·ã¥ã§ããï¼é©ãã»ã©ã·ã³ãã«ãªæ¹æ³ãåå¨ããã«ããããããããã®ããã¥ã¡ã³ãã«ã¯ãã®ãã¨ãè¨è¼ããã¦ããªãã®ã§ãã
以ä¸ã¯ãdocker/build-push-actionãªãã¸ããªããå¼ç¨ããå ¬å¼ãªãµã³ãã«ã§ãã
åè¿°ã«ã¦ãLocal cacheãå©ç¨ããã¯ã¼ã¯ããã¼ã®ãµã³ãã«ããã³ãdocker/build-push-action
ãå©ç¨ãããã£ãã·ã¥æ¹æ³ãè¨è¿°ããããªã³ã¯ãç´¹ä»ããã¦ãã¾ãã
build-push-action/cache.md at v2.7.0 · docker/build-push-action · GitHub
Ruby on Rails ã«éãããGitHub Actions ä¸ã§ Docker build ããæ©ä¼ãããå ´åãåè¿°ã®ãµã³ãã«ã大ãã«åèã«ãªãã¨æãã¾ãã
cache-from, cache-to ãªã©ã®è¨è¿°ã¯ Buildx ã®ããã¥ã¡ã³ããåèã«ãã
GitHub Action to build and push Docker images with Buildx with full support of the features provided by Moby BuildKit builder toolkit. This includes multi-platform build, secrets, remote cache, etc. and different builder deployment/namespacing options.
㨠About è¨è¼ããã¦ããéã docker/build-push-action@v2 㯠Buildx ãå©ç¨ã㦠Build, Push, Cache ãªã©ã® Docker ã«é¢ããæä½ãè¡ããã¦ãã¾ãã
Buildx ã¨ã¯ docker build
ãå¼·åãããã©ã°ã¤ã³ãåè¿°ã®è¨äºå
ãªã©ã§è¨è¿°ããã¦ãã cache-from
/ cache-to
ãªã©ããã£ãã·ã¥ã®èªã¿æ¸ãå
ãæå®ãªã©ãè²ã
ã§ããã¿ããã§ãã
- Docker Buildx | Docker Documentation
- イメージのビルド高速化機構 Docker BuildKit、BuildX を理解していなかったので調べてみました | ゲンゾウ用ポストイット