-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (52 loc) · 1.39 KB
/
Copy pathbuild.yaml
File metadata and controls
57 lines (52 loc) · 1.39 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: build
on:
push:
branches: [master]
workflow_dispatch:
permissions:
contents: read
jobs:
check:
name: Flake check + format
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: DeterminateSystems/nix-installer-action@v22
- run: nix flake check --all-systems
- run: nix fmt . && git diff --exit-code
build:
name: Build + push ${{ matrix.system }}
needs: check
runs-on: ${{ matrix.runner }}
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
include:
- { system: x86_64-linux, runner: ubuntu-24.04 }
- { system: aarch64-linux, runner: ubuntu-24.04-arm }
steps:
- uses: actions/checkout@v5
- uses: DeterminateSystems/nix-installer-action@v22
- name: Build + push ${{ matrix.system }}
env:
GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: nix run .#push-image -- ${{ matrix.system }}
manifest:
name: Publish multi-arch manifest
needs: build
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@v22
- name: Stitch manifest + tags
env:
GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: nix run .#push-manifest