-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (33 loc) · 1.09 KB
/
dashboard-ui-build.yml
File metadata and controls
39 lines (33 loc) · 1.09 KB
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
name: Dashboard UI Build
# Builds the ui-builder stage of docker/Dockerfile.dashboard on PRs that
# touch /ui, so that dependency bumps which would break the Cloud Run
# dashboard deploy (via cloudbuild-trigger-ailang.yaml in ailang-multivac)
# are caught before merge — without blocking Go-only PRs.
on:
pull_request:
branches: ["dev", "main"]
paths:
- "ui/**"
- "docker/Dockerfile.dashboard"
- ".github/workflows/dashboard-ui-build.yml"
workflow_dispatch:
permissions:
contents: read
jobs:
ui-build:
name: UI build stage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
- name: Build ui-builder stage
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
with:
context: .
file: docker/Dockerfile.dashboard
target: ui-builder
push: false
cache-from: type=gha
cache-to: type=gha,mode=max