-
Notifications
You must be signed in to change notification settings - Fork 2.8k
89 lines (86 loc) · 2.27 KB
/
build-image.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: build-image
permissions:
contents: read
packages: write
on:
push:
branches:
- ci-automated-build-image
workflow_call:
workflow_dispatch:
pull_request:
merge_group:
jobs:
linux:
name: linux
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- arch: "aarch64"
distro: "debian"
release: "12"
- arch: "aarch64"
distro: "debian"
release: "11"
- arch: "aarch64"
distro: "debian"
release: "10"
- arch: "aarch64"
distro: "ubuntu"
release: "2204"
- arch: "aarch64"
distro: "ubuntu"
release: "2004"
- arch: "aarch64"
distro: "amazonlinux"
release: "2023"
- arch: "x64"
distro: "debian"
release: "12"
- arch: "x64"
distro: "debian"
release: "11"
- arch: "x64"
distro: "debian"
release: "10"
- arch: "x64"
distro: "ubuntu"
release: "2204"
- arch: "x64"
distro: "ubuntu"
release: "2004"
- arch: "x64"
distro: "amazonlinux"
release: "2023"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Bun
uses: ./.github/actions/setup-bun
with:
bun-version: latest
- name: Setup Docker QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: linux/amd64,linux/arm64
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64
driver-opts: network=host
- name: Setup Docker Login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build
working-directory: ci
run: bun build:linux-${{ matrix.arch }}-${{ matrix.distro }}-${{ matrix.release }}
- name: Test
working-directory: ci
run: bun test:linux-${{ matrix.arch }}-${{ matrix.distro }}-${{ matrix.release }}