fix(cms-deployment): change imagePullPolicy to Always for cms container and clean up unused images during deployment
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 21m47s

This commit is contained in:
masoodafar-web
2026-06-19 01:56:43 +03:30
parent 29fa7ff435
commit 02b2966e96
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -95,6 +95,7 @@ jobs:
sshpass -e ssh -o StrictHostKeyChecking=no root@${{ env.K8S_SERVER }} "
kubectl apply -f /tmp/cms-config.yaml &&
kubectl apply -f /tmp/cms-deployment.yaml &&
crictl rmi ${REGISTRY}/${IMAGE_NAME}:latest 2>/dev/null || true &&
kubectl rollout restart deployment/cms &&
kubectl rollout status deployment/cms --timeout=180s &&
rm -f /tmp/cms-config.yaml /tmp/cms-deployment.yaml
+1 -1
View File
@@ -36,7 +36,7 @@ spec:
containers:
- name: cms
image: 194.5.195.53:30080/admin/cms:latest
imagePullPolicy: IfNotPresent
imagePullPolicy: Always
ports:
- containerPort: 8080
name: http