Skip to content

Merge pull request #47 from depot/update-ci #71

Merge pull request #47 from depot/update-ci

Merge pull request #47 from depot/update-ci #71

Workflow file for this run

name: Build
on:
push:
branches:
- main
workflow_dispatch: {}
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
concurrency: build
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install depot
uses: depot/setup-action@v1
with:
oidc: true
- name: Authenticate with Google Cloud
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
- name: Setup SSH agent
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.HUGGING_FACE_SSH_KEY }}
- name: Set up gcloud CLI
uses: google-github-actions/setup-gcloud@v1
- name: Authenticate with Artifact Registry
run: gcloud auth configure-docker us-docker.pkg.dev
- name: Build images
run: pnpm build-all