Skip to content

Instantly share code, notes, and snippets.

@bkuhl
Created June 20, 2018 19:52
Show Gist options
  • Save bkuhl/adbae2298a0db8a71a31adfd9f683e0f to your computer and use it in GitHub Desktop.
Save bkuhl/adbae2298a0db8a71a31adfd9f683e0f to your computer and use it in GitHub Desktop.
deploy-to-rancher:
stage: deploy
image: cdrx/rancher-gitlab-deploy
script:
- upgrade --stack patchbot --service migrations --new-image $CLI_IMAGE_RELEASE_TAG
- upgrade --stack patchbot --service web --new-image $WEB_IMAGE_RELEASE_TAG --start-before-stopping
- upgrade --stack patchbot --service cron --new-image $CLI_IMAGE_RELEASE_TAG
- upgrade --stack patchbot --service queue --new-image $CLI_IMAGE_RELEASE_TAG
environment:
name: production
url: https://mysite.com
only:
- master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment