A docker image to run Rancher 2 cli in giltab pipelines.
Example of use in a gitlab-ci.yml
file:
variables:
RANCHER_SERVER_URL: https://your.server/v3
RANCHER_API_TOKEN: "..."
RANCHER_PROJECT: "c-xxxxx:project-xxxxx"
production:
image: roiback/rancher2-cli-gitlab
stage: deploy
script:
- rancher login "$RANCHER_SERVER_URL" -t "$RANCHER_API_TOKEN" --context $RANCHER_PROJECT --skip-verify
- rancher kubectl set env deployment core --namespace "..." -e DEPLOY_TIMESTAMP="$(date +%s)"