{"id":14070622,"url":"https://github.com/satackey/action-docker-layer-caching","last_synced_at":"2025-05-16T09:00:24.069Z","repository":{"id":37811819,"uuid":"269985176","full_name":"satackey/action-docker-layer-caching","owner":"satackey","description":"[CAUTION] This repository is not actively maintained. / Enable Docker layer caching in your GitHub Actions workflow.","archived":false,"fork":false,"pushed_at":"2023-04-30T08:15:59.000Z","size":864,"stargazers_count":422,"open_issues_count":37,"forks_count":55,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-05T19:11:20.905Z","etag":null,"topics":["cache","cd","ci","docker","docker-build","docker-cache","docker-compose","github-actions"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/docker-layer-caching","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/satackey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-06T13:11:32.000Z","updated_at":"2025-04-23T18:55:11.000Z","dependencies_parsed_at":"2024-08-13T07:27:34.498Z","dependency_job_id":null,"html_url":"https://github.com/satackey/action-docker-layer-caching","commit_stats":{"total_commits":260,"total_committers":7,"mean_commits":"37.142857142857146","dds":0.2269230769230769,"last_synced_commit":"cc3f3828e75cbb45f0cf5139b95329c88480aa97"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satackey%2Faction-docker-layer-caching","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satackey%2Faction-docker-layer-caching/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satackey%2Faction-docker-layer-caching/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satackey%2Faction-docker-layer-caching/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/satackey","download_url":"https://codeload.github.com/satackey/action-docker-layer-caching/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254501548,"owners_count":22081526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","cd","ci","docker","docker-build","docker-cache","docker-compose","github-actions"],"created_at":"2024-08-13T07:07:57.526Z","updated_at":"2025-05-16T09:00:24.017Z","avatar_url":"https://github.com/satackey.png","language":"TypeScript","readme":"# Docker Layer Caching in GitHub Actions [![Readme Test status is unavailable](https://github.com/satackey/action-docker-layer-caching/workflows/Readme%20Test/badge.svg)](https://github.com/satackey/action-docker-layer-caching/actions?query=workflow%3A%22Readme+Test%22) [![CI status is unavailable](https://github.com/satackey/action-docker-layer-caching/workflows/CI/badge.svg)](https://github.com/satackey/action-docker-layer-caching/actions?query=workflow%3ACI)\n\nEnable Docker Layer Caching by adding a single line in GitHub Actions.\nThis GitHub Action speeds up the building of docker images in your GitHub Actions workflow.\n\nYou can run `docker build` and `docker-compose build` in your GitHub Actions workflow using the cache with no special configuration, and it also supports multi-stage builds.\n\nThis GitHub Action uses the [docker save](https://docs.docker.com/engine/reference/commandline/save/) / [docker load](https://docs.docker.com/engine/reference/commandline/load/) command and the [@actions/cache](https://www.npmjs.com/package/@actions/cache) library.\n\n## ⚠️ **Deprecation Notice for `v0.0.4` and older** ⚠️\n\nThe author had not considered a large number of layers to be cached, so those versions process all layers in parallel.\n([#12](https://github.com/satackey/action-docker-layer-caching/issues/12))  \n**Please update to version `v0.0.5` with limited concurrency to avoid overloading the cache service.**\n\n## Example workflows\n\n### Docker Compose\n```yaml\nname: CI\n\non: push\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n\n    steps:\n    - uses: actions/checkout@v2\n\n    # Pull the latest image to build, and avoid caching pull-only images.\n    # (docker pull is faster than caching in most cases.)\n    - run: docker-compose pull\n\n    # In this step, this action saves a list of existing images,\n    # the cache is created without them in the post run.\n    # It also restores the cache if it exists.\n    - uses: satackey/action-docker-layer-caching@v0.0.11\n      # Ignore the failure of a step and avoid terminating the job.\n      continue-on-error: true\n\n    - run: docker-compose up --build\n\n    # Finally, \"Post Run satackey/action-docker-layer-caching@v0.0.11\",\n    # which is the process of saving the cache, will be executed.\n```\n\n\n### docker build\n\n```yaml\nname: CI\n\non: push\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n\n    steps:\n    - uses: actions/checkout@v2\n\n    # In this step, this action saves a list of existing images,\n    # the cache is created without them in the post run.\n    # It also restores the cache if it exists.\n    - uses: satackey/action-docker-layer-caching@v0.0.11\n      # Ignore the failure of a step and avoid terminating the job.\n      continue-on-error: true\n\n    - name: Build the Docker image\n      run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)\n\n    # Finally, \"Post Run satackey/action-docker-layer-caching@v0.0.11\",\n    # which is the process of saving the cache, will be executed.\n```\n\n\n## Inputs\n\nSee [action.yml](./action.yml) for details.\n\nBy default, the cache is separated by the workflow name.\nYou can also set the cache key manually, like the official [actions/cache](https://github.com/actions/cache#usage) action.\n\n```yaml\n    - uses: satackey/action-docker-layer-caching@v0.0.11\n      # Ignore the failure of a step and avoid terminating the job.\n      continue-on-error: true\n      with:\n        key: foo-docker-cache-{hash}\n        restore-keys: |\n          foo-docker-cache-\n```\n\n**Note: You must include `{hash}` in the `key` input.** (`{hash}` is replaced by the hash value of the docker image when the action is executed.)\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsatackey%2Faction-docker-layer-caching","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsatackey%2Faction-docker-layer-caching","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsatackey%2Faction-docker-layer-caching/lists"}