You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
service_account_key: ${{ secrets.GKE_SA_KEY }} # Configure this secret in GitHub Actions
49
+
project_id: ${{ secrets.GKE_PROJECT_ID }} # Configure this secret in GitHub Actions
50
+
cluster_name: tu-cluster-gke # Reemplaza with your GKE cluster name
51
+
cluster_zone: tu-zona-gke # Reemplaza with your GKE cluster zone
52
+
53
+
- name: Get Kubernetes credentials
54
+
run: |-
55
+
gcloud container clusters get-credentials tu-cluster-gke --zone tu-zona-gke --project ${{ secrets.GKE_PROJECT_ID }} # Reemplaza with your cluster and zone
56
+
57
+
- name: Deploy to GKE (Ejemplo Básico - Necesitas Adaptar!)
58
+
run: |-
59
+
# This is a VERY basic example. YOU MUST ADAPT THIS TO YOUR KUBERNETES DEPLOYMENT.
60
+
# Normally you would use a Kubernetes Deployment YAML file and kubectl apply -f deployment.yaml
61
+
# Here, we just update the image of an existing Deployment named 'mi-backend-deployment' (example).
62
+
kubectl set image deployment/mi-backend-deployment mi-backend-container=gcr.io/${{ secrets.GKE_PROJECT_ID }}/mi-backend-simulacion:${GITHUB_SHA}
0 commit comments