moved to use kluster agent
This commit is contained in:
parent
223f426a58
commit
3e44a114e4
1 changed files with 9 additions and 3 deletions
|
|
@ -32,11 +32,17 @@ build:
|
|||
# Deploy to production
|
||||
deploy:
|
||||
stage: deploy
|
||||
image: ictu/sshpass
|
||||
image: bitnami/kubectl:latest
|
||||
script:
|
||||
- sshpass -p c4c5f47918a6310d79de188465218b440c69570c ssh -o StrictHostKeyChecking=no kubeuser@stare.gg 'kubectl rollout restart deployments/proxy-detection-api'
|
||||
|
||||
- kubectl config get-contexts
|
||||
- kubectl set image deployment/proxy-detection-api proxy-detection-api=$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
|
||||
- kubectl rollout status deployment/proxy-detection-api --timeout=300s
|
||||
- kubectl get pods -l app=proxy-detection-api
|
||||
environment:
|
||||
name: production
|
||||
kubernetes:
|
||||
namespace: default # or your actual namespace
|
||||
only:
|
||||
- master
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue