Use the Dev Container Build and Run GitHub Action
mainThe devcontainers/ci GitHub Action allows you to reuse Dev Containers within a GitHub workflow. You can use it to pre-build Dev Container images (supporting Dev Container Features and automatic metadata labeling) or to run commands (like CI tests or builds) inside a Dev Container.
This project is built on top of @devcontainers/cli, which can also be used for automation in other systems.
- 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