Skip to content

Commit

Permalink
xddd
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlyJazz committed Nov 19, 2023
1 parent 2917069 commit 0a3611b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/auth-microservice-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ jobs:
kubectl apply -f ${{env.K8_DIR}}/auth-db-service.yaml
kubectl apply -f ${{env.K8_DIR}}/auth-db-volume-persistentvolumeclaim.yaml
kubectl apply -f ${{env.K8_DIR}}/auth-microservice-config.yaml
echo "Apply the deployment and capture the output"
DEPLOYMENT_OUTPUT=$(kubectl apply -f ${{env.K8_DIR}}/auth-microservice-deployment.yaml)
echo "Check if the output contains 'unchanged'"
if echo "$DEPLOYMENT_OUTPUT" | grep -q 'unchanged'; then
echo "Deployment unchanged. Restarting to pick up possible new Docker image..."
kubectl rollout restart deployment/auth-microservice
fi
kubectl apply -f ${{env.K8_DIR}}/auth-microservice-deployment.yaml
kubectl apply -f ${{env.K8_DIR}}/auth-microservice-service.yaml
Expand Down
2 changes: 1 addition & 1 deletion auth-microservice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ Let imagine `ec4942c811fe` is the container ID (`docker ps` will show you what i

## Testing Deploy to K8:

- 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17
- 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18

0 comments on commit 0a3611b

Please sign in to comment.