Rinomina il workflow in GKE Auto-Deploy e migliora la gestione delle variabili per il deployment dell'applicazione
Some checks failed
GKE Auto-Deploy / build-and-deploy (push) Failing after 36s

This commit is contained in:
2026-01-28 18:21:49 +01:00
parent a33d8d8e63
commit c3f8023b6c
3 changed files with 41 additions and 21 deletions

View File

@@ -1,31 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: demo-app
name: ${APP_NAME}
labels:
app: ${APP_NAME}
spec:
replicas: 1
selector:
matchLabels:
app: demo-app
app: ${APP_NAME}
template:
metadata:
labels:
app: demo-app
app: ${APP_NAME}
spec:
containers:
- name: demo-container
image: nginx:alpine # Verrà sostituita dalla pipeline
- name: app-container
image: ${FULL_IMAGE_NAME}
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: demo-service
name: ${APP_NAME}-service
spec:
type: LoadBalancer
selector:
app: demo-app
app: ${APP_NAME}
ports:
- port: 80
targetPort: 80