Skip to content

Commit

Permalink
update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnliujw committed May 9, 2019
1 parent 9498017 commit e0c93a5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
cd employee-service
docker build -t registry.cn-hangzhou.aliyuncs.com/shawn_private/employee:1.1 . && cd ../
docker build -t registry.cn-hangzhou.aliyuncs.com/shawn_repo/employee:1.1 . && cd ../
cd department-service
docker build -t registry.cn-hangzhou.aliyuncs.com/shawn_private/department:1.1 . && cd ../
docker build -t registry.cn-hangzhou.aliyuncs.com/shawn_repo/department:1.1 . && cd ../
cd organization-service
docker build -t registry.cn-hangzhou.aliyuncs.com/shawn_private/organization:1.1 .
docker build -t registry.cn-hangzhou.aliyuncs.com/shawn_repo/organization:1.1 .
6 changes: 3 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

kubectl apply -f kubernetes/employee-deployment.yaml
kubectl apply -f kubernetes/department-deployment.yaml
kubectl apply -f kubernetes/organization-deployment.yaml
kubectl apply -f kubernetes/projects/employee-deployment.yaml
kubectl apply -f kubernetes/projects/department-deployment.yaml
kubectl apply -f kubernetes/projects/organization-deployment.yaml
kubectl apply -f kubernetes/ingress.yaml
2 changes: 1 addition & 1 deletion kubernetes/projects/department-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: department
image: registry.cn-hangzhou.aliyuncs.com/shawn_private/department:1.1
image: registry.cn-hangzhou.aliyuncs.com/shawn_repo/department:1.1
ports:
- containerPort: 8080
env:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/projects/employee-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: employee
image: registry.cn-hangzhou.aliyuncs.com/shawn_private/employee:1.1
image: registry.cn-hangzhou.aliyuncs.com/shawn_repo/employee:1.1
ports:
- containerPort: 8080
env:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/projects/organization-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: organization
image: registry.cn-hangzhou.aliyuncs.com/shawn_private/organization:1.1
image: registry.cn-hangzhou.aliyuncs.com/shawn_repo/organization:1.1
ports:
- containerPort: 8080
env:
Expand Down
6 changes: 3 additions & 3 deletions push.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
docker push registry.cn-hangzhou.aliyuncs.com/shawn_private/employee:1.1
docker push registry.cn-hangzhou.aliyuncs.com/shawn_private/department:1.1
docker push registry.cn-hangzhou.aliyuncs.com/shawn_private/organization:1.1
docker push registry.cn-hangzhou.aliyuncs.com/shawn_repo/employee:1.1
docker push registry.cn-hangzhou.aliyuncs.com/shawn_repo/department:1.1
docker push registry.cn-hangzhou.aliyuncs.com/shawn_repo/organization:1.1

0 comments on commit e0c93a5

Please sign in to comment.