Sign inSign up

jramcast/rancher2-cli-gitlab

By jramcast

•Updated almost 8 years ago

A docker image to run Rancher 2 cli in giltab pipelines.

Image
0

10K+

jramcast/rancher2-cli-gitlab repository overview

⁠rancher2-cli-gitlab

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: jramcast/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)"

Tag summary

Content type

Image

Digest

Size

22.6 MB

Last updated

almost 8 years ago

docker pull jramcast/rancher2-cli-gitlab