Read kernel command-line parameters from rootfs (#48) #171
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: ci | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
fedora: | |
- 34-1.2 | |
- 35-1.2 | |
- 36-1.5 | |
- 37-1.7 | |
- 38-1.6 | |
- 39-1.5 | |
- 40_Beta-1.10 | |
env: | |
MAKE: make FEDORA_VERSION=${{ matrix.fedora }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Get Fedora version | |
run: echo "FEDORA_MAJOR=$(${MAKE} show-fedora-major)" >> ${GITHUB_ENV} | |
- name: Build builder image | |
run: ${MAKE} builder | |
- name: Build updater image | |
run: ${MAKE} updater | |
- name: Test updater | |
working-directory: tests/iso-build | |
run: | | |
docker run -i --rm \ | |
-v $(pwd):/work \ | |
tmpfsroot-fedora-updater:${FEDORA_MAJOR} | |
test -f rpms.lock | |
cat rpms.lock | |
- name: Test builder | |
working-directory: tests/iso-build | |
run: | | |
docker run -i --rm \ | |
-v $(pwd)/rpms.lock:/work/rpms.lock:ro \ | |
-v $(pwd)/packages.list:/work/packages.list:ro \ | |
-v $(pwd)/output:/work/output \ | |
-e DISK_DEVS=sda \ | |
-e MAIN_DISK=sda \ | |
-e PARTSIZE_DOCKER=1024 \ | |
-e PARTSIZE_LOG=1024 \ | |
-e PARTSIZE_CACHE=1024 \ | |
-e PARTSIZE_OPT=1024 \ | |
tmpfsroot-fedora-builder:${FEDORA_MAJOR} | |
test -f output/fedora-custom.iso | |
ls -lh output/fedora-custom.iso | |
- name: Login to GitHub Container Registry | |
if: github.event_name == 'push' | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload to GitHub Container Registry (latest) | |
if: github.ref == 'refs/heads/main' | |
run: | | |
docker tag \ | |
tmpfsroot-fedora-builder:${FEDORA_MAJOR} \ | |
ghcr.io/seqsense/tmpfsroot-fedora-builder:${FEDORA_MAJOR} | |
docker tag \ | |
tmpfsroot-fedora-updater:${FEDORA_MAJOR} \ | |
ghcr.io/seqsense/tmpfsroot-fedora-updater:${FEDORA_MAJOR} | |
docker push ghcr.io/seqsense/tmpfsroot-fedora-builder:${FEDORA_MAJOR} | |
docker push ghcr.io/seqsense/tmpfsroot-fedora-updater:${FEDORA_MAJOR} | |
- name: Upload to GitHub Container Registry (tag) | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
tag=${FEDORA_MAJOR}-${GITHUB_REF#refs/tags/} | |
docker tag \ | |
tmpfsroot-fedora-builder:${FEDORA_MAJOR} \ | |
ghcr.io/seqsense/tmpfsroot-fedora-builder:${tag} | |
docker tag \ | |
tmpfsroot-fedora-updater:${FEDORA_MAJOR} \ | |
ghcr.io/seqsense/tmpfsroot-fedora-updater:${tag} | |
docker push ghcr.io/seqsense/tmpfsroot-fedora-builder:${tag} | |
docker push ghcr.io/seqsense/tmpfsroot-fedora-updater:${tag} |