Since neither the devcontainers/ci action support specifing a different config path, nor the config can specify a different dockerComposeFile value via environment, we have to proactively adjust the compose config to build from local Dockerfile.
It's quite hard to modify devcontainer.json using shell commands, as it's in jsonc format, we need some triky.
Fortunately, we can first strip the comments from that json file using an npm package, and then modify it using the jq tool. These tools help us to make things simpler and more manageable.
Not tested. It may works or not, just depends on if all the github action step can run and finish correctly :-)
devcontainers/ci
action support specifing a different config path, nor the config can specify a differentdockerComposeFile
value via environment, we have to proactively adjust the compose config to build from localDockerfile
.devcontainer.json
using shell commands, as it's in jsonc format, we need some triky.jq
tool. These tools help us to make things simpler and more manageable.Not tested. It may works or not, just depends on if all the github action step can run and finish correctly :-)
Resolve #44.