Merge branch 'kub-stage' into production
Build and Deploy to Production / build-and-deploy (push) Successful in 11m31s
Build and Deploy to Production / build-and-deploy (push) Successful in 11m31s
This commit is contained in:
@@ -74,7 +74,11 @@ jobs:
|
||||
# Apply manifests and restart
|
||||
sshpass -e ssh -o StrictHostKeyChecking=no root@${{ env.K8S_SERVER }} "
|
||||
kubectl apply -n kbs-stage -f /tmp/frontoffice-deployment.yaml &&
|
||||
crictl rmi ${REGISTRY}/${IMAGE_NAME}:latest 2>/dev/null || true &&
|
||||
# Drop cached :latest so IfNotPresent/Always both pick the new digest
|
||||
# (crictl is broken on this host — use containerd ctr)
|
||||
ctr -n k8s.io images ls -q | grep -E 'frontoffice(:latest|@)' | while read -r ref; do
|
||||
ctr -n k8s.io images rm \"\$ref\" 2>/dev/null || true
|
||||
done
|
||||
kubectl -n kbs-stage rollout restart deployment/frontoffice &&
|
||||
kubectl -n kbs-stage rollout status deployment/frontoffice --timeout=180s &&
|
||||
rm -f /tmp/frontoffice-deployment.yaml
|
||||
|
||||
Reference in New Issue
Block a user