Skip to content

Agent Mesh

ci: publish sam-one images alongside release images

Antonio Ojea439a73854aa9
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index d4253f06..7a9f9d7c 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -183,6 +183,28 @@ jobs:
tags: ${{ steps.meta-console.outputs.tags }}
labels: ${{ steps.meta-console.outputs.labels }}
+ - name: Extract metadata for sam-one
+ id: meta-sam-one
+ uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
+ with:
+ images: ${{ env.REGISTRY }}/google/sam-one
+ 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-one image
+ uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
+ with:
+ context: .
+ file: Dockerfile.sam-one
+ platforms: ${{ github.ref_type == 'tag' && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
+ push: true
+ tags: ${{ steps.meta-sam-one.outputs.tags }}
+ labels: ${{ steps.meta-sam-one.outputs.labels }}
+
deploy:
name: Deploy to GKE
runs-on: ubuntu-latest