Skip to content

Update config.json (#441) #281

Update config.json (#441)

Update config.json (#441) #281

Workflow file for this run

name: Build Main Branch and Trigger Templates
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-trigger:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Google Auth
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
- name: Set up Cloud SDK
uses: 'google-github-actions/setup-gcloud@v2'
- name: Configure SDK
run: 'gcloud auth configure-docker us-east1-docker.pkg.dev'
- name: Docker Auth
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
emrgntcmplxty/r2r:main
us-east1-docker.pkg.dev/alert-rush-397022/sciphi-r2r/r2r:main
platforms: linux/amd64,linux/arm64
- name: Trigger Dependent Repositories
if: success()
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
https://api.github.com/repos/SciPhi-AI/R2R-basic-rag-template/dispatches \
-d '{"event_type": "rebuild", "client_payload": {"r2r_tag": "main"}}'