Skip to content
/ ci Public
forked from devcontainers/ci

GitHub action and Azure DevOps Task for simplifying re-use of VS Code dev containers in GitHub and Azure DevOps pipelines

License

Notifications You must be signed in to change notification settings

devidw/ci

 
 

Repository files navigation

devcontainers/ci

devcontainers/ci contains a GitHub action and Azure DevOps task aimed at making it easier to re-use a development container in a GitHub workflow or Azure DevOps pipeline.

This project builds on top of @devcontainers/cli

GitHub Action

The example below shows usage of the GitHub Action - see the GitHub Action documentation for more details:

- name: Build and run dev container task
  uses: devcontainers/ci@v0.2
  with:
    imageName: ghcr.io/example/example-devcontainer
    runCmd: make ci-build

Azure DevOps Task

The example below shows usage of the Azure DevOps Task - see the Azure DevOps Task documentation for more details:

- task: DevcontainersCI@0
  inputs:
    imageName: 'yourregistry.azurecr.io/example-dev-container'
    runCmd: 'make ci-build'
    sourceBranchFilterForPush: refs/heads/main

CHANGELOG

Version 0.2.0

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

This brings many benefits around compatibility with VS Code Dev Containers. One key area is that container-features can now be used in CI.

In theory, docker-compose based dev containers should also work however these are currently untested and image caching is blocked on this issue

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

GitHub action and Azure DevOps Task for simplifying re-use of VS Code dev containers in GitHub and Azure DevOps pipelines

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages

  • JavaScript 50.9%
  • TypeScript 27.8%
  • Dockerfile 10.4%
  • Shell 10.2%
  • Other 0.7%