devcontainers / ci

A GitHub Action and Azure DevOps Task designed to simplify using Dev Containers (https://containers.dev) in CI/CD systems.
MIT License
303 stars 46 forks source link

Add `noCache` option #199

Closed trxcllnt closed 1 year ago

trxcllnt commented 1 year ago

Adds a noCache option to pass --no-cache down to @devcontainer/cli.

This PR should address the issue I mentioned here: https://github.com/devcontainers/cli/pull/343#issuecomment-1406910496

stuartleeks commented 1 year ago

Hi @trxcllnt - thanks for the PR! Reading the discussion you linked to, I can see how this would be a useful option for CI builds to pick up the latest versions of features (especially if the CI images are pushed and used as an image cache for local dev!)

This repo contains both the GitHub action and Azure DevOps task, and we aim to keep parity between the two. Would you mind updating the AzDO task to also include the noCache option? (As an aside, this made me realise that we don't currently have a contrib doc, so I've started work on that in https://github.com/devcontainers/ci/pull/201!)

trxcllnt commented 1 year ago

@stuartleeks sure! I'm not familiar with Azure DevOps tasks, but I think I updated the right files. Let me know if there's anything else I should change.

stuartleeks commented 1 year ago

/test 5c482b5

github-actions[bot] commented 1 year ago

:robot: pr-bot :robot:

:runner: Running tests: https://github.com/devcontainers/ci/actions/runs/4293925444

(in response to this comment from @stuartleeks)