diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml new file mode 100644 index 0000000..4aa1da8 --- /dev/null +++ b/.github/workflows/build-image.yml @@ -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 \ No newline at end of file diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..c754497 --- /dev/null +++ b/Containerfile @@ -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 \ No newline at end of file