-
Notifications
You must be signed in to change notification settings - Fork 8
56 lines (46 loc) · 1.24 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.x.x
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 18.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