{"id":16000714,"url":"https://github.com/zero88/gh-registry","last_synced_at":"2025-04-05T01:20:22.284Z","repository":{"id":118265269,"uuid":"324947781","full_name":"zero88/gh-registry","owner":"zero88","description":"Docker Registry for GitHub action cache","archived":false,"fork":false,"pushed_at":"2021-06-12T04:26:49.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T09:32:12.354Z","etag":null,"topics":["docker-registry-v2","github-actions"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zero88.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-12-28T07:52:46.000Z","updated_at":"2021-06-12T04:26:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e10081f-1015-480e-a909-01273bfde967","html_url":"https://github.com/zero88/gh-registry","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero88%2Fgh-registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero88%2Fgh-registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero88%2Fgh-registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero88%2Fgh-registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zero88","download_url":"https://codeload.github.com/zero88/gh-registry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247272401,"owners_count":20911746,"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":["docker-registry-v2","github-actions"],"created_at":"2024-10-08T09:20:18.107Z","updated_at":"2025-04-05T01:20:22.275Z","avatar_url":"https://github.com/zero88.png","language":"Dockerfile","readme":"# gh-docker-registry\n\n![Docker Image Version (latest semver)](https://img.shields.io/docker/v/zero88/gh-registry?sort=semver\u0026style=flat-square)\n![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/zero88/gh-registry?style=flat-square)\n\nDocker Registry for GitHub action cache\n\n## Reference\n\n- From [docker-distribution](https://github.com/docker/distribution)\n- From [docker-distribution-library-image](https://github.com/docker/distribution-library-image)\n\n## Changes\n\n- Add user `runner:github` as `1001:121` to allow mount volume in `github-runer` host with `docker container` on `github-runner`\n\n## Usage\n\n```yaml\n  build:\n    runs-on: ubuntu-latest\n    services:\n      registry:\n        image: zero88/gh-registry:latest\n        ports:\n          - 5000:5000\n        options: \u003e-\n          -v /home/runner:/var/lib/registry\n          --name registry\n\n    steps:\n      - uses: actions/checkout@v2\n      - name: Cache Docker layers\n        uses: actions/cache@v2\n        with:\n          path: /home/runner/docker\n          key: ${{ runner.os }}-docker-${{ github.sha }}\n          restore-keys: |\n            ${{ runner.os }}-docker-\n\n      - name: Validate cache\n        run: |\n          docker buildx imagetools inspect localhost:5000/${{ env.APP_IMAGE }}:buildcache || echo \"Not Found\"\n      \n      - name: Set up QEMU\n        uses: docker/setup-qemu-action@v1\n\n      - name: Set up Docker Buildx\n        uses: docker/setup-buildx-action@v1\n        with:\n          driver-opts: network=host\n\n      - name: Docker build\n        uses: docker/build-push-action@v2\n        with:\n          context: .\n          file: Dockerfile\n          platforms: linux/amd64,linux/arm64,linux/arm/v7\n          cache-from: type=registry,ref=localhost:5000/test:buildcache\n          cache-to: type=registry,ref=localhost:5000/test:buildcache,mode=max\n          tags: images/test:1.0.0\n\n      - name: Cleanup Docker build cache if any\n        run: |\n          docker buildx imagetools inspect localhost:5000/test:buildcache\n          echo \"======================================================\"\n          docker buildx prune --filter until=72h --keep-storage 5GB -f\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzero88%2Fgh-registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzero88%2Fgh-registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzero88%2Fgh-registry/lists"}