Run setup using ostreecontainer #85
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create and publish an ISO | |
on: | |
push: | |
branches: | |
- 'main' | |
tags: | |
- 'v*' | |
pull_request: | |
env: | |
IMAGE_VERSION: 39 | |
IMAGE_ARCH: x86_64 | |
IMAGE_NAME: base-main | |
IMAGE_REPO: ghcr.io/ublue-os | |
jobs: | |
build-and-push-iso: | |
runs-on: ubuntu-latest | |
container: | |
image: fedora:39 | |
options: "--privileged" | |
volumes: | |
- /:/host | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Cleanup host space | |
run: | | |
df -h /host || true | |
rm -rf /host/usr/local/lib/android || true | |
rm -rf /host/usr/share/dotnet || true | |
rm -rf /host/opt/ghc || true | |
rm -rf /host/usr/local/.ghcup || true | |
df -h /host || true | |
- name: Install make and git | |
run: dnf install -y make git | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install dependencies | |
run: make install-deps | |
- name: Download image | |
run: | | |
make ${IMAGE_NAME}-${IMAGE_VERSION} \ | |
arch=${IMAGE_ARCH} \ | |
version=${IMAGE_VERSION} \ | |
image_repo=${IMAGE_REPO} \ | |
image_name=${IMAGE_NAME} | |
- name: Create boot.iso | |
run: | | |
make boot.iso \ | |
arch=${IMAGE_ARCH} \ | |
version=${IMAGE_VERSION} \ | |
image_repo=${IMAGE_REPO} \ | |
image_name=${IMAGE_NAME} | |
- name: Create deploy.iso | |
run: | | |
make deploy.iso \ | |
arch=${IMAGE_ARCH} \ | |
version=${IMAGE_VERSION} \ | |
image_repo=${IMAGE_REPO} \ | |
image_name=${IMAGE_NAME} | |
- name: Upload ISO as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ISOs | |
path: deploy.iso | |
if-no-files-found: error | |
retention-days: 0 | |
compression-level: 0 | |
overwrite: true |