#!/bin/bash set -e REGISTRY="git.giaco.net" IMAGE_NAME="capitano/webapplinux" TAG="latest" echo "Building image..." docker build -t $REGISTRY/$IMAGE_NAME:$TAG /home/capitano/kubernetes/infrastructure/webapplinux/ echo "Pushing to registry..." docker push $REGISTRY/$IMAGE_NAME:$TAG echo "Deploying to Kubernetes..." kubectl apply -f k8s/namespace.yaml 2>/dev/null || true kubectl apply -f k8s/ echo "Check status with: kubectl get pods -n linuxwebapp"