Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
martafolf authored Oct 8, 2024
1 parent 48b2026 commit 7ba51f0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Build image: FCOS Custom"

env:
IMAGE_NAME: "ziax-fcos-custom"

on:
push:
branches:
- main

jobs:
build-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Build container image
uses: redhat-actions/buildah-build@v2
with:
context: ${{ env.IMAGE_NAME }}
containerfiles: Containerfile
image: ${{ env.IMAGE_NAME }}
layers: false
oci: true
7 changes: 7 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM quay.io/fedora/fedora-coreos:stable
RUN rpm-ostree cliwrap install-to-root /

ADD https://copr.fedorainfracloud.org/coprs/kwizart/kernel-longterm-6.6/repo/fedora-40/kwizart-kernel-longterm-6.6-fedora-40.repo /etc/yum.repos.d/kernel-longterm-6.6.repo

RUN rpm-ostree override remove kernel --install kernel-longterm
RUN ostree container commit

0 comments on commit 7ba51f0

Please sign in to comment.