This commit is contained in:
2019-11-27 15:48:40 +08:00
parent e517209402
commit c06e8c8d61
2 changed files with 3 additions and 4 deletions

View File

@@ -60,9 +60,8 @@ deploy_live:
url: https://cms.fjy8018.xin url: https://cms.fjy8018.xin
script: script:
- kubectl version - kubectl version
- kubectl get pods -n hmdt - kubectl get pods -n cms
- cd manifests/ - cd manifests/
- sed -i "s/__IMAGE_VERSION_SLUG__/${IMAGE_VERSION}/" deployment.yaml - sed -i "s/__IMAGE_VERSION_SLUG__/${IMAGE_VERSION}/" deployment.yaml
- sed -i "s/__IMAGE_SLUG__/${CI_REGISTRY_IMAGE}/" deployment.yaml
- kubectl apply -f deployment.yaml - kubectl apply -f deployment.yaml
- kubectl get pods -n hmdt - kubectl get pods -n cms

View File

@@ -38,7 +38,7 @@ spec:
- name: harbor-login - name: harbor-login
containers: containers:
- name: cms - name: cms
image: __IMAGE_SLUG__:__IMAGE_VERSION_SLUG__ image: harbor.fjy8018.top:8883/fjy8018/cms:__IMAGE_VERSION_SLUG__
ports: ports:
- containerPort: 8080 - containerPort: 8080
--- ---