rancher-gitlab-deploy
rancher-gitlab-deploy copied to clipboard
Can you add "upgrade --replace-Command" ?
I would like to be able to dynamically change the container's commands.
Could be a "restart --container-new-command yarn build && Yarn tests" but for upgrade would be helpful.
upgrade --replace-Command 'yarn install && yarn build && yarn tests'
then
upgrade --replace-Command 'yarn start'
I still have not found anything that could do that. I'm doing a complex roundtrip by creating a container with Rancher CLI inside the Rancher and updating it via Gitlab CI/CD and then doing Rancher-compose up myfile.yml.
In case my yml files are triggered according to the context of the command I want to keep in the container. What I'm doing It works, but it's hard to maintain and teach how to use them.
Cheers