forked from xenova/whisper-web
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.08 KB
/
cd-build.yaml
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
name: CD
on:
push:
branches:
- main
tags:
- v*
jobs:
push-backend:
name: Build backend
runs-on: ubuntu-latest
outputs:
version: ${{ steps.build.outputs.tag }}
steps:
- uses: actions/checkout@v4
- uses: ./actions/build-push-gcloud
id: build
with:
google_key: ${{ secrets.GCLOUD_SECRET_KEY }}
repo: services/whisper-notes-backend
dockerfile: backend.Dockerfile
registry: europe-north1-docker.pkg.dev
project_id: ${{ secrets.GCLOUD_PROJECT }}
secrets: inherit
push-frontend:
name: Build frontend
runs-on: ubuntu-latest
outputs:
version: ${{ steps.build.outputs.tag }}
steps:
- uses: actions/checkout@v4
- uses: ./actions/build-push-gcloud
id: build
with:
google_key: ${{ secrets.GCLOUD_SECRET_KEY }}
repo: services/whisper-notes-frontend
dockerfile: frontend.Dockerfile
registry: europe-north1-docker.pkg.dev
project_id: ${{ secrets.GCLOUD_PROJECT }}
secrets: inherit