Skip to content

Commit

Permalink
Update cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JuribaDev authored Aug 29, 2024
1 parent 114b6b0 commit d402ebd
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,6 @@ jobs:
echo "cert-manager is already installed."
fi
# Create ClusterIssuer if it doesn't exist
if ! kubectl get clusterissuer letsencrypt-prod &> /dev/null; then
- name: Setup TLS and Wait for Deployments
run: |
# Install cert-manager if not already installed
if ! kubectl get namespace cert-manager &> /dev/null; then
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.12.0/cert-manager.yaml
echo "Waiting for cert-manager to be ready..."
kubectl wait --for=condition=ready pod -l app.kubernetes.io/instance=cert-manager -n cert-manager --timeout=300s
else
echo "cert-manager is already installed."
fi
# Create ClusterIssuer if it doesn't exist
if ! kubectl get clusterissuer letsencrypt-prod &> /dev/null; then
cat<<EOF | kubectl apply -f -
Expand Down Expand Up @@ -148,18 +135,6 @@ jobs:
echo "Waiting for client deployment to be ready..."
kubectl rollout status deployment/client-deployment --timeout=300s
echo "ClusterIssuer created."
else
echo "ClusterIssuer already exists."
fi
# Wait for deployments to be ready
echo "Waiting for server deployment to be ready..."
kubectl rollout status deployment/server-deployment --timeout=300s
echo "Waiting for client deployment to be ready..."
kubectl rollout status deployment/client-deployment --timeout=300s
- name: Wait for TLS Certificate
run: |
echo "Waiting for TLS certificate to be issued..."
Expand Down

0 comments on commit d402ebd

Please sign in to comment.