CI: initial hardcoded ci
Some checks failed
Build containers / Build and push image (push) Failing after 4m23s
Some checks failed
Build containers / Build and push image (push) Failing after 4m23s
mend
This commit is contained in:
42
.gitea/workflows/build.yaml
Normal file
42
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
name: Build containers
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
branches: ["main"]
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_push:
|
||||||
|
name: Build and push image
|
||||||
|
runs-on: job-v2
|
||||||
|
container:
|
||||||
|
image: "quay.io/fedora-ostree-desktops/buildroot:43"
|
||||||
|
options: "--security-opt apparmor=unconfined --privileged --user 0:0 --device=/dev/kvm --device=/dev/fuse --volume /:/run/host:rw"
|
||||||
|
steps:
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
dnf install -y nodejs
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install latest rpm-ostree package from testing repos
|
||||||
|
run: |
|
||||||
|
dnf upgrade -y --enablerepo=updates-testing --refresh rpm-ostree
|
||||||
|
|
||||||
|
- name: Build Bootable Container image
|
||||||
|
run: |
|
||||||
|
./builder.sh base 43
|
||||||
|
|
||||||
|
- name: Push
|
||||||
|
uses: redhat-actions/push-to-registry@v2
|
||||||
|
with:
|
||||||
|
image: misthios/base
|
||||||
|
tags: |
|
||||||
|
43
|
||||||
|
images/base/43
|
||||||
|
registry: git.plabble.org
|
||||||
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
extra-args: |
|
||||||
|
--compression-format=zstd
|
||||||
@@ -38,6 +38,3 @@ packages:
|
|||||||
repos:
|
repos:
|
||||||
- fedora-base
|
- fedora-base
|
||||||
- fedora-updates
|
- fedora-updates
|
||||||
|
|
||||||
labels:
|
|
||||||
containers.bootc: "1"
|
|
||||||
|
|||||||
@@ -150,10 +150,7 @@ postprocess:
|
|||||||
- |
|
- |
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -xeuo pipefail
|
set -xeuo pipefail
|
||||||
source /usr/lib/os-release
|
echo "enable bootloader-update.service" >> /usr/lib/systemd/system-preset/85-bootc.preset
|
||||||
if [ $ID == "fedora" ] && [ ${VERSION_ID} -ge 43 ]; then
|
|
||||||
echo "enable bootloader-update.service" >> /usr/lib/systemd/system-preset/85-bootc.preset
|
|
||||||
fi
|
|
||||||
# Undo RPM scripts enabling units; we want the presets to be canonical
|
# Undo RPM scripts enabling units; we want the presets to be canonical
|
||||||
# https://github.com/projectatomic/rpm-ostree/issues/1803
|
# https://github.com/projectatomic/rpm-ostree/issues/1803
|
||||||
- |
|
- |
|
||||||
@@ -179,6 +176,21 @@ packages:
|
|||||||
- xfsprogs e2fsprogs dosfstools
|
- xfsprogs e2fsprogs dosfstools
|
||||||
- bootupd
|
- bootupd
|
||||||
|
|
||||||
|
packages-x86_64:
|
||||||
|
- grub2 grub2-efi-x64 efibootmgr shim
|
||||||
|
- microcode_ctl
|
||||||
|
|
||||||
exclude-packages:
|
exclude-packages:
|
||||||
- kernel-debug-core
|
- kernel-debug-core
|
||||||
|
|
||||||
|
# The grub bits are mainly designed for desktops, and IMO haven't seen
|
||||||
|
# enough testing in concert with ostree. At some point we'll flesh out
|
||||||
|
# the full plan in https://github.com/coreos/fedora-coreos-tracker/issues/47
|
||||||
|
|
||||||
|
remove-from-packages:
|
||||||
|
- [grub2-tools, /etc/grub.d/08_fallback_counting,
|
||||||
|
/etc/grub.d/10_reset_boot_success,
|
||||||
|
/etc/grub.d/12_menu_auto_hide,
|
||||||
|
/usr/lib/systemd/.*]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user