-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (38 loc) · 946 Bytes
/
main.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
name: Build smolBSD image
on:
push:
branches:
- main
workflow_dispatch:
inputs:
img:
description: "Image target"
required: true
default: "rescue"
arch:
description: "Architecture"
required: true
default: "amd64"
env:
IMG: "rescue"
ARCH: "amd64"
jobs:
build_img:
runs-on: ubuntu-latest
container: debian:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up environment
run: |
apt update && apt install -y curl xz-utils make sudo git
echo "User: $(whoami)"
- name: Clean cache
run: rm -rf /var/cache
- name: Build image
run: |
make NOSVCIMGBUILD=yes ARCH=${{ env.ARCH }} SVCIMG=${{ env.SVCIMG }} MOUNTRO=${{ env.MOUNTRO }} ${{ env.IMG }}
- uses: actions/upload-artifact@v4
with:
name: images
path: "*.img"