Skip to content

chore(deps): bump google.golang.org/grpc from 1.51.0 to 1.53.0 in /agent #212

chore(deps): bump google.golang.org/grpc from 1.51.0 to 1.53.0 in /agent

chore(deps): bump google.golang.org/grpc from 1.51.0 to 1.53.0 in /agent #212

Workflow file for this run

name: Build and Deploy Agent
on:
push:
paths:
- "agent/**"
branches:
- main
pull_request:
paths:
- "agent/**"
branches:
- 'main'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/muxable/rtchat-agent
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./agent
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
deploy:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
needs: build
concurrency:
group: deploy
cancel-in-progress: true
environment:
name: agent
url: https://console.cloud.google.com/compute/instanceGroups/details/us-central1-c/agent-small-us-central1?project=rtchat-47692
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: google-github-actions/auth@v1
with:
workload_identity_provider: 'projects/832669896677/locations/global/workloadIdentityPools/github-actions/providers/github-actions'
service_account: '[email protected]'
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0
- name: Deploy to GCE
id: deploy
run: |
gcloud compute instance-groups managed rolling-action start-update agent-small-us-central1 --project=rtchat-47692 --type='proactive' --max-surge=1 --max-unavailable=1 --minimal-action='replace' --replacement-method='substitute' --version=template=https://www.googleapis.com/compute/beta/projects/rtchat-47692/global/instanceTemplates/agent-e2-small --zone=us-central1-c