Skip to content

claneo/rancher-redepoly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

rancher-redepoly

A simple script to execute Redeploy command in Rancher.

Helpful in CI environment.

Usage

Directly

docker run --rm \
  -e ENDPOINT=YOUR_RANCHER_ENDPOINT \
  -e TOKEN=YOUR_TOKEN \
  -e CLUSTER=YOUR_CLUSTER_NAME \
  /rancher-redeploy.sh PROJECT NAMESPACE DEPLOYMENT

Build your own image

Dockerfile:

FROM rancher-redeploy
ENV ENDPOINT=YOUR_RANCHER_ENDPOINT
ENV TOKEN=YOUR_TOKEN
ENV CLUSTER=YOUR_CLUSTER_NAME

Usage:

docker run --rm YOUR_IMAGE /rancher-redeploy.sh PROJECT NAMESPACE DEPLOYMENT

Gitlab CI example

deploy:
  image: rancher-redeploy
  stage: deploy
  variables:
    ENDPOINT: YOUR_RANCHER_ENDPOINT
    TOKEN: YOUR_TOKEN
    CLUSTER: YOUR_CLUSTER_NAME
  script:
    - /redeploy.sh PROJECT NAMESPACE DEPLOYMENT

About

A simple script to execute Redeploy command in Rancher.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published