{"id":13692269,"url":"https://github.com/devcontainers/ci","last_synced_at":"2025-05-02T19:31:45.994Z","repository":{"id":38080703,"uuid":"373839873","full_name":"devcontainers/ci","owner":"devcontainers","description":"A GitHub Action and Azure DevOps Task designed to simplify using Dev Containers (https://containers.dev) in CI/CD systems.","archived":false,"fork":false,"pushed_at":"2025-04-22T00:11:23.000Z","size":4178,"stargazers_count":378,"open_issues_count":62,"forks_count":66,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-04-24T22:14:21.802Z","etag":null,"topics":["devcontainers","vscode"],"latest_commit_sha":null,"homepage":"","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/devcontainers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-06-04T12:48:19.000Z","updated_at":"2025-04-20T17:11:16.000Z","dependencies_parsed_at":"2023-11-07T17:49:06.914Z","dependency_job_id":"36c2cb8c-37a1-4c97-bbdc-d28e12bfe718","html_url":"https://github.com/devcontainers/ci","commit_stats":{"total_commits":320,"total_committers":19,"mean_commits":"16.842105263157894","dds":"0.26249999999999996","last_synced_commit":"3998f9ee7179e91ad72065e0b68fe2ebed581346"},"previous_names":["stuartleeks/devcontainer-build-run"],"tags_count":127,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcontainers%2Fci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcontainers%2Fci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcontainers%2Fci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcontainers%2Fci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devcontainers","download_url":"https://codeload.github.com/devcontainers/ci/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252095269,"owners_count":21693889,"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":["devcontainers","vscode"],"created_at":"2024-08-02T17:00:55.433Z","updated_at":"2025-05-02T19:31:45.544Z","avatar_url":"https://github.com/devcontainers.png","language":"TypeScript","readme":"# Dev Container Build and Run (devcontainers/ci)\n\nThe Dev Container Build and Run GitHub Action is aimed at making it easier to re-use [Dev Containers](https://containers.dev) in a GitHub workflow. The Action supports using a Dev Container to run commands for CI, testing, and more, along with pre-building a Dev Container image. Dev Container image building supports [Dev Container Features](https://containers.dev/implementors/features/#devcontainer-json-properties) and automatically places Dev Container [metadata on an image](https://containers.dev/implementors/spec/#image-metadata) label for simplified use.\n\n\u003e **NOTE:** The Action is not currently capable of taking advantage of pre-built Codespaces. However, pre-built images are supported.\n\nA similar [Azure DevOps Task](./docs/azure-devops-task.md) is also available!\n\nNote that this project builds on top of [@devcontainers/cli](https://www.npmjs.com/package/@devcontainers/cli) which can be used in other automation systems.\n\n## Quick start\nHere are three examples of using the Action for common scenarios. See the [documentation](./docs/github-action.md) for more details and a list of available [inputs](./docs/github-action.md#inputs).\n\n**Pre-building an image:**\n\n```yaml\n- name: Pre-build dev container image\n  uses: devcontainers/ci@v0.3\n  with:\n    imageName: ghcr.io/example/example-devcontainer\n    cacheFrom: ghcr.io/example/example-devcontainer\n    push: always\n```\n\n**Using a Dev Container for a CI build:**\n\n```yaml\n- name: Run make ci-build in dev container\n  uses: devcontainers/ci@v0.3\n  with:    \n    # [Optional] If you have a separate workflow like the one above\n    # to pre-build your container image, you can reference it here\n    # to speed up your application build workflows as well!\n    cacheFrom: ghcr.io/example/example-devcontainer\n\n    push: never\n    runCmd: make ci-build\n```\n\n**Both at once:**\n\n```yaml\n- name: Pre-build image and run make ci-build in dev container\n  uses: devcontainers/ci@v0.3\n  with:\n    imageName: ghcr.io/example/example-devcontainer\n    cacheFrom: ghcr.io/example/example-devcontainer\n    push: always\n    runCmd: make ci-build\n```\n\n## CHANGELOG\n\n### Version 0.3.0 (24th February 2023)\n\nThis version updates the release mechanism for the GitHub action so that only the compiled JavaScript is included in the release.\nThe primary motivation is to simplify the process for contributing to the action, but a side-benefit should be a reduced download size when using the action.\n\n### Version 0.2.0\n\nThis version updates the implementation to use [@devcontainers/cli](https://www.npmjs.com/package/@devcontainers/cli).\n\nThis brings many benefits around compatibility with Dev Containers. One key area is that [Dev Container Features](https://containers.dev/features) can now be used in CI along with recent enhancements like [image label support](https://containers.dev/implementors/reference/#labels).\n\n### Version 0.1.x\n\n0.1.x versions were the initial version of the action/task and attempted to mimic the behaviour of Dev Containers with manual `docker` commands\n","funding_links":[],"categories":["TypeScript","Tools","vscode"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevcontainers%2Fci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevcontainers%2Fci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevcontainers%2Fci/lists"}