{"id":13707147,"url":"https://github.com/orisano/castage","last_synced_at":"2025-07-13T10:35:08.230Z","repository":{"id":57533550,"uuid":"155072666","full_name":"orisano/castage","owner":"orisano","description":"castage is multi-stage builds helper for caching","archived":false,"fork":false,"pushed_at":"2025-06-23T11:44:15.000Z","size":155,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-10T12:56:02.435Z","etag":null,"topics":["ci","docker","docker-build","multi-stage-build"],"latest_commit_sha":null,"homepage":"","language":"Go","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/orisano.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":"2018-10-28T13:13:00.000Z","updated_at":"2025-06-23T11:44:19.000Z","dependencies_parsed_at":"2024-04-02T12:51:44.415Z","dependency_job_id":"3818bc89-41ca-4fd9-8e69-78642ce4895f","html_url":"https://github.com/orisano/castage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/orisano/castage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fcastage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fcastage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fcastage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fcastage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orisano","download_url":"https://codeload.github.com/orisano/castage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fcastage/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265128897,"owners_count":23715633,"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":["ci","docker","docker-build","multi-stage-build"],"created_at":"2024-08-02T22:01:21.759Z","updated_at":"2025-07-13T10:35:08.189Z","avatar_url":"https://github.com/orisano.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# castage\ncastage is multi-stage builds helper for caching.\n\n## Installation\n```bash\ngo get -u github.com/orisano/castage/...\n```\n\n## How to use\n```\n$ cat Dockerfile\nFROM golang:1.12-alpine3.9 AS vendor\nWORKDIR /var/app/castage\nRUN apk add --no-cache git\nCOPY go.sum go.mod ./\nRUN go mod download\n\nFROM golang:1.12-alpine3.9 AS builder\n\nFROM alpine:3.9 AS app\n\n```\n```\n$ castage -i image_name\nset -ex\ndocker pull image_name:vendor-cache || true\ndocker build -t image_name:vendor-cache --target=vendor --cache-from=image_name:vendor-cache .\ndocker pull image_name:builder-cache || true\ndocker build -t image_name:builder-cache --target=builder --cache-from=image_name:vendor-cache,image_name:builder-cache .\ndocker pull image_name:app-cache || true\ndocker build -t image_name:app-cache --target=app --cache-from=image_name:vendor-cache,image_name:builder-cache,image_name:app-cache .\n```\n\n## Author\nNao Yonashiro (@orisano)\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fcastage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forisano%2Fcastage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fcastage/lists"}