You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
- name: Run make ci-build in dev containeruses: devcontainers/ci@v0.3with:
# [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-devcontainerpush: neverrunCmd: make ci-build
Both at once:
- name: Pre-build image and run make ci-build in dev containeruses: devcontainers/ci@v0.3with:
imageName: ghcr.io/example/example-devcontainercacheFrom: ghcr.io/example/example-devcontainerpush: alwaysrunCmd: 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.
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
About
A GitHub Action and Azure DevOps Task designed to simplify using Dev Containers (https://containers.dev) in CI/CD systems.