How to collect all static assets (js, css) used by discourse

It’s a SHA1 hash of the file contents. It’s generated here:

The compiled versions that get used are put in /var/www/discourse/public/assets/.

If you add a stanza to your app.yml you can perform an action after the container is rebuilt. For example, to upload to S3 we use something similar to:

hooks:
  after_assets_precompile:
    - exec:
        cd: $home
        cmd:
          - sudo -E -u discourse bundle exec rake s3:upload_assets

In your case, replace the rake task with the commands you run to push the compiled assets to Github when the container is built.