{"id":15813453,"url":"https://github.com/peaceiris/actions-export-envs","last_synced_at":"2025-06-20T19:40:29.077Z","repository":{"id":64511890,"uuid":"574833595","full_name":"peaceiris/actions-export-envs","owner":"peaceiris","description":"Exporting ACTIONS_RUNTIME_TOKEN and ACTIONS_CACHE_URL to enable the Docker layer caching on GitHub Actions.","archived":false,"fork":false,"pushed_at":"2025-02-14T21:52:54.000Z","size":35,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-28T20:08:06.133Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/peaceiris.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,"zenodo":null}},"created_at":"2022-12-06T07:06:16.000Z","updated_at":"2025-03-13T09:56:49.000Z","dependencies_parsed_at":"2023-10-14T15:32:30.059Z","dependency_job_id":"168426cd-456f-413b-925e-bcfc8fa788a9","html_url":"https://github.com/peaceiris/actions-export-envs","commit_stats":{"total_commits":21,"total_committers":4,"mean_commits":5.25,"dds":"0.38095238095238093","last_synced_commit":"56f686b5a688cb2e5656cde49d6a66cfd2453588"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/peaceiris/actions-export-envs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peaceiris%2Factions-export-envs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peaceiris%2Factions-export-envs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peaceiris%2Factions-export-envs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peaceiris%2Factions-export-envs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peaceiris","download_url":"https://codeload.github.com/peaceiris/actions-export-envs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peaceiris%2Factions-export-envs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261006437,"owners_count":23096058,"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":[],"created_at":"2024-10-05T04:02:16.008Z","updated_at":"2025-06-20T19:40:24.057Z","avatar_url":"https://github.com/peaceiris.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# actions-export-envs\n\nThis action exports `ACTIONS_RUNTIME_TOKEN` and `ACTIONS_CACHE_URL` to enable the Docker layer caching on GitHub Actions.\n\ncf. [GitHub Actions cache | Docker Documentation](https://docs.docker.com/build/building/cache/backends/gha/)\n\n\n## Usage\n\nExample:\n\n```Makefile\nDOCKER_CLI_EXPERIMENTAL := enabled\nDOCKER_BUILDKIT := 1\nDOCKER_SCOPE := action-image-${GITHUB_REF_NAME}\n\nPKG_NAME := ghcr.io/peaceiris/actions-export-envs:latest\n\n.PHONY: setup-buildx\nsetup-buildx:\n\tdocker buildx create --use --driver docker-container\n\n.PHONY: build\nbuild: setup-buildx\n\tdocker buildx build . \\\n\t\t--tag \"${PKG_NAME}\" \\\n\t\t--platform \"linux/amd64\" \\\n\t\t--output \"type=docker\" \\\n\t\t--cache-from \"type=gha,scope=${DOCKER_SCOPE}\" \\\n\t\t--cache-to \"type=gha,mode=max,scope=${DOCKER_SCOPE}\"\n```\n\nhttps://github.com/peaceiris/actions-export-envs/blob/31e89d21c33421aee2c7780a6391715be3dd901a/Makefile#L12-L19\n\n```yaml\nname: CI\n\non:\n  push:\n  pull_request:\n\njobs:\n  main:\n    runs-on: ubuntu-22.04\n    steps:\n      - uses: actions/checkout@v3\n\n      - uses: peaceiris/actions-export-envs@v1.1.0\n        id: envs\n\n      - run: make build\n        env:\n          ACTIONS_RUNTIME_TOKEN: ${{ steps.envs.outputs.ACTIONS_RUNTIME_TOKEN }}\n          ACTIONS_CACHE_URL: ${{ steps.envs.outputs.ACTIONS_CACHE_URL }}\n```\n\nhttps://github.com/peaceiris/actions-export-envs/blob/31e89d21c33421aee2c7780a6391715be3dd901a/.github/workflows/ci.yml#L48-L54\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeaceiris%2Factions-export-envs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeaceiris%2Factions-export-envs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeaceiris%2Factions-export-envs/lists"}