-
Notifications
You must be signed in to change notification settings - Fork 90
Description
In my case, I am using this action to pre-build an image I then use in codespaces and remote - containers. I do this on a periodic basis for security, and do not need to execute anything in the container.
I was expecting to be able to do this:
- name: Build image
uses: devcontainers/ci@v0.2
with:
imageName: ghcr.io/chuxel/devpacks/devcontainerHowever, what I ended up needing to do was this:
- name: Build image
uses: devcontainers/ci@v0.2
with:
imageName: ghcr.io/chuxel/devpacks/devcontainer
skipContainerUserIdUpdate: true
push: always
runCmd: echo "Image built successfully."Would it be possible to alter the defaults so you didn't need quite so much knowledge of properties to do it? The behavior around push I found particularly confusing given Action's trigger system. I make heavy use of workflow_dispatch to simplify testing which didn't work even before I layered in the schedule.
Ideally if runCmd wasn't specified, it would just skip the container spin up for example.
Otherwise including a clear example for this scenario in the README and docs probably makes sense. //cc @stuartleeks