shimboot/.github/workflows/build-rootfs.yaml

32 lines
767 B
YAML
Raw Normal View History

2024-01-25 16:12:20 -05:00
name: build-rootfs
run-name: Build the base Debian rootfs
on: [push]
2024-01-25 16:19:25 -05:00
defaults:
run:
shell: bash
working-directory: ./
2024-01-25 16:12:20 -05:00
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: download repo
uses: actions/checkout@v4
- name: install deps
run: |
sudo apt-get install debootstrap coreutils -y
- name: run build
id: run_build
run: sudo DEBUG=1 ./build_rootfs.sh data/rootfs bookworm hostname=shimboot root_passwd=root username=user user_passwd=user
- name: archive rootfs
2024-01-25 16:19:25 -05:00
run: sudo tar -vcf data/rootfs.tar.gz -C data/rootfs ./
2024-01-25 16:12:20 -05:00
- name: upload rootfs
uses: actions/upload-artifact@v4
with:
name: rootfs_tar
path: data/rootfs.tar.gz