cdrx / rancher-gitlab-deploy

Painless deployment of projects built with GitLab CI onto your Rancher infrastructure
MIT License
432 stars 89 forks source link

Upgrade multiple containers in parallel #36

Closed cryptiklemur closed 7 years ago

cryptiklemur commented 7 years ago

Would be super nice if we could update multiple containers in parallel. I know there are tools that let you do that, but none of these tools are installed on the image, afaik

cdrx commented 7 years ago

You can do that in your .gitlab-ci.yml file — if you define multiple steps in the same (deploy) stage they will run concurrently

cdrx commented 7 years ago

If defined like this:

deploy-web:
  stage: deploy
  image: cdrx/rancher-gitlab-deploy
  script:
    - upgrade --service web

deploy-database:
  stage: deploy
  image: cdrx/rancher-gitlab-deploy
  script:
    - upgrade --service db

these will run in parallel, as long as you've got a runner with concurrency > 1

cryptiklemur commented 7 years ago

Oy. DIdnt know that. Thanks!