Skip to content

Build rootfs

Build rootfs #15

Workflow file for this run

name: Build rootfs
on:
workflow_dispatch:
schedule:
- cron: '00 8 1 * *'
permissions:
contents: write
jobs:
build-rootfs:
runs-on: ubuntu-latest
permissions:
contents: write
name: "Build rootfs"
container:
image: archlinux
options: --privileged -w /work -v ./:/work
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check version
run: echo "ARCH_VERSION=$(date +%Y%m%d)" >> $GITHUB_ENV
- name: Build without WSLg
run: ./create-rootfs.sh --output archlinux-rootfs.tar.gz
- name: Build with WSLg
run: ./create-rootfs.sh --with-wslg --output archlinux-rootfs-wslg.tar.gz
- name: Upload
uses: softprops/[email protected]
with:
tag_name: "${{ env.ARCH_VERSION }}"
files: |
archlinux-rootfs.tar.gz
archlinux-rootfs.tar.gz.sha256sum
archlinux-rootfs-wslg.tar.gz
archlinux-rootfs-wslg.tar.gz.sha256sum
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}