The discussion revolves around deploying themes in a CI/CD fashion for a Discourse Docker setup. zcuric seeks an automated approach to theme deployment without manual admin intervention, exploring the use of the themes:install rake task. david points to recent changes in the themes rake task, suggesting that theme configuration can be piped via stdin. zcuric confirms this works with cat theme_config.yml | bin/rake themes:install. markvanlan clarifies that the correct syntax is bin/rake themes:install < theme.yml, resolving the earlier confusion about JSON input. The thread highlights how to automate theme installations using a YAML file and the rake task, with contributions from david, markvanlan, and zcuric helping refine the process.
Hi,
do you guys have suggestion how to approach theme deployment in CI/CD fashion? Client expects new theme releases every two weeks and we would like to ship theme in automated process. We are using discourse docker.
We would like to avoid manual installation for each release.
Side note, I don’t know if this is a bug, but the it seems branch doesn’t get saved on first theme installation. (Need to double check this to confirm)
docker exec -it app rails themes:install -- # theme data
I don’t know if this command can read files. For example - theme.yaml file which would contain theme info for instalation.
That file could be deployed to shared folder and docker command could read it from there and install the theme or make updates.