No description
  • TypeScript 64.1%
  • Dockerfile 18%
  • Shell 16.1%
  • JavaScript 0.8%
  • Makefile 0.8%
  • Other 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Abdurrahmaan Iqbal 00115d9fb3
Merge pull request #435 from tgenov/main
feat: native multi-platform builds via runner matrix (no QEMU emulation)
2026-06-01 12:21:05 +01:00
.azure-devops Fix CI 2025-02-06 17:23:07 +01:00
.devcontainer Node 24 update 2026-04-06 14:51:06 +00:00
.github Merge pull request #435 from tgenov/main 2026-06-01 12:21:05 +01:00
.vscode Rename AzDO extension/task to align with new repo name 2022-06-08 14:19:29 +01:00
azdo-task Merge pull request #435 from tgenov/main 2026-06-01 12:21:05 +01:00
common Merge pull request #435 from tgenov/main 2026-06-01 12:21:05 +01:00
docs docs: explain matrix fan-out in GitHub Actions native multi-platform example 2026-05-15 21:41:24 +02:00
github-action Merge pull request #435 from tgenov/main 2026-06-01 12:21:05 +01:00
github-tests Update docker version in test 2026-04-06 16:37:41 +00:00
merge fix: remove double error reporting in merge docker wrappers 2026-04-14 21:30:43 +02:00
scripts fix: publish merge/ action in release pipeline so devcontainers/ci/merge@v* resolves 2026-05-19 18:06:25 +02:00
.gitattributes Initial commit 2021-06-04 13:48:20 +01:00
.gitignore Remove compiled JS content (#210) 2023-02-23 16:08:27 +00:00
action.yml Merge pull request #435 from tgenov/main 2026-06-01 12:21:05 +01:00
CONTRIBUTING.md Add note on JIT 2025-02-07 14:48:06 +01:00
LICENSE Update docs etc after repo transfer 2022-06-08 08:53:31 +00:00
maintainers.md Add option to run ci_common without credential steps 2022-06-09 09:38:49 +00:00
README.md Update docs to point to v0.3 release (#218) 2023-02-24 09:58:17 +00:00

Dev Container Build and Run (devcontainers/ci)

The Dev Container Build and Run GitHub Action is aimed at making it easier to re-use Dev Containers 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 and automatically places Dev Container metadata on an image label for simplified use.

NOTE: The Action is not currently capable of taking advantage of pre-built Codespaces. However, pre-built images are supported.

A similar Azure DevOps Task is also available!

Note that this project builds on top of @devcontainers/cli which can be used in other automation systems.

Quick start

Here are three examples of using the Action for common scenarios. See the documentation for more details and a list of available inputs.

Pre-building an image:

- name: Pre-build dev container image
  uses: devcontainers/ci@v0.3
  with:
    imageName: ghcr.io/example/example-devcontainer
    cacheFrom: ghcr.io/example/example-devcontainer
    push: always

Using a Dev Container for a CI build:

- name: Run make ci-build in dev container
  uses: devcontainers/ci@v0.3
  with:    
    # [Optional] If you have a separate workflow like the one above
    # to pre-build your container image, you can reference it here
    # to speed up your application build workflows as well!
    cacheFrom: ghcr.io/example/example-devcontainer

    push: never
    runCmd: make ci-build

Both at once:

- name: Pre-build image and run make ci-build in dev container
  uses: devcontainers/ci@v0.3
  with:
    imageName: ghcr.io/example/example-devcontainer
    cacheFrom: ghcr.io/example/example-devcontainer
    push: always
    runCmd: make ci-build

CHANGELOG

Version 0.3.0 (24th February 2023)

This version updates the release mechanism for the GitHub action so that only the compiled JavaScript is included in the release. The 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.

Version 0.2.0

This version updates the implementation to use @devcontainers/cli.

This brings many benefits around compatibility with Dev Containers. One key area is that Dev Container Features can now be used in CI along with recent enhancements like image label support.

Version 0.1.x

0.1.x versions were the initial version of the action/task and attempted to mimic the behaviour of Dev Containers with manual docker commands