This commit is contained in:
parent
447585c617
commit
caf51b0909
@ -78,19 +78,9 @@ jobs:
|
||||
sed -i "s|\${CI_REGISTRY_IMAGE}/video-backend:latest|${{ secrets.SWR_SERVER }}/${{ secrets.SWR_ORG }}/video-backend:latest|g" k8s/backend-deployment.yaml
|
||||
sed -i "s|\${CI_REGISTRY_IMAGE}/video-web:latest|${{ secrets.SWR_SERVER }}/${{ secrets.SWR_ORG }}/video-web:latest|g" k8s/web-deployment.yaml
|
||||
|
||||
# Install cert-manager (skip if already installed)
|
||||
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.17.1/cert-manager.yaml 2>/dev/null || true
|
||||
# Wait for all cert-manager components to be ready
|
||||
kubectl -n cert-manager wait --for=condition=Available deployment/cert-manager --timeout=180s
|
||||
kubectl -n cert-manager wait --for=condition=Available deployment/cert-manager-cainjector --timeout=180s
|
||||
kubectl -n cert-manager wait --for=condition=Available deployment/cert-manager-webhook --timeout=180s
|
||||
# Extra wait for webhook endpoint registration
|
||||
sleep 15
|
||||
|
||||
# Apply all manifests
|
||||
# Apply all manifests (cert-manager & issuer already installed on cluster)
|
||||
set -o pipefail
|
||||
{
|
||||
kubectl apply -f k8s/cert-manager-issuer.yaml
|
||||
kubectl apply -f k8s/backend-deployment.yaml
|
||||
kubectl apply -f k8s/web-deployment.yaml
|
||||
kubectl apply -f k8s/ingress.yaml
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user