0xffff-one / flarum-0x

🔧 Customized Flarum for the 0xFFFF Community.
https://0xffff.one
MIT License
45 stars 5 forks source link

build: keep only main branch for ci build #46

Closed hsxfjames closed 1 year ago

hsxfjames commented 1 year ago
  1. 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.
  2. It's quite hard to modify devcontainer.json using shell commands, as it's in jsonc format, we need some triky.
  3. 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 :-)

Resolve #44.