https://github.com/jramcast/rancher2-cli-gitlab
https://github.com/jramcast/rancher2-cli-gitlab
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jramcast/rancher2-cli-gitlab
- Owner: jramcast
- License: mit
- Created: 2019-06-21T10:13:30.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-21T10:13:55.000Z (almost 6 years ago)
- Last Synced: 2025-01-20T09:46:12.331Z (4 months ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rancher2-cli-gitlab
A docker image to run Rancher 2 cli in giltab pipelines.
Example of use in a `gitlab-ci.yml` file:
```yml
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)"
```