I was wondering if it is possible to SSH into a container, like it is possible to download and/or upload using git. If this was possible I could automate the process of uploading content to Glitch when I push to my git server.
I don’t believe there’s a way to SSH into a container but maybe you could accomplish the same thing by using a glitch.json file to trigger an install command that will merge your git repositories before starting your app?
I’ve come to a conclusion, it was a bit difficult at first because I needed everything to work from my CI/CD pipeline. The way I solved this was first by adding my glitch token as a secret to my pipeline. Whenever I push to master the pipeline will first build all the resources, afterwards I download the git repository from the Glitch container I delete all of its content and clone the built resources to the glitch directory. I commit the new resources and push back to the glitch container. I have a script inside the glitch container (outside of the app directory) which constantly looks for git changes, once the head is updated so is the script.