-
Notifications
You must be signed in to change notification settings - Fork 5
72 lines (58 loc) · 1.49 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: build
on:
workflow_call:
env:
OWNER: ${{ github.repository_owner }}
FILE: base-image
BUILDKIT_PROGRESS: plain
BUILDX_NO_DEFAULT_LOAD: 1
BASE_IMAGE_VERSION: ${{ github.ref_name }}-${{ github.sha }}
APT_HTTP_PROXY: http://172.17.0.1:8000
permissions:
contents: read
jobs:
setup:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
checks: write
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
show-progress: false
- name: 📥 Setup Node.js
uses: ./.github/actions/setup-node
with:
save-cache: true
lint:
runs-on: ubuntu-latest
needs:
- setup
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
show-progress: false
- name: 📥 Setup Node.js
uses: ./.github/actions/setup-node
- name: lint
run: |
pnpm prettier
build:
runs-on: ubuntu-latest
needs:
- setup
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
show-progress: false
- name: 📥 Setup Node.js
uses: ./.github/actions/setup-node
- name: prepare apt proxy
run: sudo pnpm prepare:proxy
- name: build image
run: docker buildx bake