Agent Mesh
Go a2aa2a-protocolagent-meshagentic-aiinferencemcpmeshmesh-networknetwork-securitynetworking-aip2p-network
ci: publish and deploy sam-console to GKE testnet
Antonio Ojea0c8b7c69fc55
diff --git a/.github/k8s/sam-console-template.yaml b/.github/k8s/sam-console-template.yamlindex fd4217fc..f612aed5 100644--- a/.github/k8s/sam-console-template.yaml+++ b/.github/k8s/sam-console-template.yaml@@ -29,7 +29,7 @@ spec:spec:containers:- name: sam-console- image: ${IMAGE_PREFIX}sam-console:${TAG}+ image: ghcr.io/google/sam-console:${IMAGE_TAG}imagePullPolicy: IfNotPresentargs:- "--hub=http://sam-control-plane-${ENV_NAME}:8080"@@ -40,8 +40,8 @@ spec:- name: SAM_ADMIN_TOKENvalueFrom:secretKeyRef:- name: sam-admin-token- key: token+ name: sam-control-plane-secret-${ENV_NAME}+ key: admin-tokenports:- containerPort: 8081resources:diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yamlindex 7aa9afc2..adb229d5 100644--- a/.github/workflows/deploy.yaml+++ b/.github/workflows/deploy.yaml@@ -147,6 +147,28 @@ jobs:tags: ${{ steps.meta-sambox.outputs.tags }}labels: ${{ steps.meta-sambox.outputs.labels }}+ - name: Extract metadata for sam-console+ id: meta-console+ uses: docker/metadata-action@v6+ with:+ images: ${{ env.REGISTRY }}/google/sam-console+ tags: |+ type=ref,event=branch+ type=ref,event=tag+ type=raw,value=${{ github.sha }}+ type=raw,value=latest,enable={{is_default_branch}}+ type=raw,value=stable,enable=${{ startsWith(github.ref, 'refs/tags/v') }}++ - name: Build and push sam-console image+ uses: docker/build-push-action@v7+ with:+ context: .+ file: Dockerfile.sam-console+ platforms: ${{ github.ref_type == 'tag' && 'linux/amd64,linux/arm64' || 'linux/amd64' }}+ push: true+ tags: ${{ steps.meta-console.outputs.tags }}+ labels: ${{ steps.meta-console.outputs.labels }}+deploy:name: Deploy to GKEruns-on: ubuntu-latest@@ -316,6 +338,7 @@ jobs:envsubst '${ENV_NAME} ${NAMESPACE} ${GCP_PROJECT_ID} ${CLUSTER_NAME} ${CLUSTER_REGION} ${IMAGE_TAG}' < .github/k8s/sam-control-plane-template.yaml | kubectl apply -f -envsubst '${ENV_NAME} ${NAMESPACE} ${GCP_PROJECT_ID} ${CLUSTER_NAME} ${CLUSTER_REGION} ${IMAGE_TAG}' < .github/k8s/sam-router-template.yaml | kubectl apply -f -+ envsubst '${ENV_NAME} ${NAMESPACE} ${GCP_PROJECT_ID} ${CLUSTER_NAME} ${CLUSTER_REGION} ${IMAGE_TAG}' < .github/k8s/sam-console-template.yaml | kubectl apply -f -envsubst '${ENV_NAME} ${NAMESPACE} ${GCP_PROJECT_ID}' < .github/k8s/dns-sync-cronjob-template.yaml | kubectl apply -f -kubectl rollout status deployment/sam-control-plane-${ENV_NAME} -n ${NAMESPACE} --timeout=120s || {@@ -324,6 +347,12 @@ jobs:exit 1}+ kubectl rollout status deployment/sam-console-${ENV_NAME} -n ${NAMESPACE} --timeout=120s || {+ echo "Console Deployment failed!"+ print_rollout_diagnostics "${NAMESPACE}" "deployment/sam-console-${ENV_NAME}" "app=sam-console-${ENV_NAME}"+ exit 1+ }+kubectl rollout status statefulset/sam-router-${ENV_NAME} -n ${NAMESPACE} --timeout=120s || {echo "Router Deployment failed!"print_rollout_diagnostics "${NAMESPACE}" "statefulset/sam-router-${ENV_NAME}" "app=sam-router-${ENV_NAME}"