No description
Find a file
Bastien Riviere db088154b6
Some checks failed
build-ublue-custom / Build and push image (push) Has been cancelled
chore: enable podman socket for users
2025-01-04 12:51:45 +01:00
.github chore: build latest 2024-11-16 17:47:26 +01:00
.woodpecker fix: cache remove docker:// 2024-12-11 09:22:55 +01:00
files chore: don't set default command for greetd 2024-12-23 22:52:57 +01:00
.gitignore Initial commit 2024-05-03 09:56:30 +02:00
build.sh chore: enable podman socket for users 2025-01-04 12:51:45 +01:00
Containerfile fix: switch to nvidia image 2024-11-17 23:28:45 +01:00
cosign.pub chore: use a new cosign secret 2024-12-08 15:46:30 +01:00
LICENSE Initial commit 2024-05-03 09:56:30 +02:00
packages chore: add ghostty 2024-12-29 19:35:11 +01:00
README.md Initial commit 2024-05-03 09:56:30 +02:00

image-template

Purpose

This repository is meant to be a template for building your own custom Universal Blue image. This template is the recommended way to make customizations to any image published by the Universal Blue Project:

This template includes a Containerfile and a Github workflow for building the container image. As soon as the workflow is enabled in your repository, it will build the container image and push it to the Github Container Registry.

Prerequisites

Working knowledge in the following topics:

How to Use

Template

Select Use this Template and create a new repository from it. To enable the workflows, you may need to go the Actions tab of the new repository and click to enable workflows.

Containerfile

This file defines the operations used to customize the selected image. It contains examples of possible modifications, including how to:

  • change the upstream from which the custom image is derived
  • add additional RPM packages
  • add binaries as a layer from other images

Workflows

build.yml

This workflow creates your custom OCI image and publishes it to the Github Container Registry (GHCR). By default, the image name will match the Github repository name.

Container Signing

Container signing is important for end-user security and is enabled on all Universal Blue images. It is recommended you set this up, and by default the image builds will fail if you don't.

This provides users a method of verifying the image.

  1. Install the cosign CLI tool

  2. Run inside your repo folder:

    cosign generate-key-pair
    
    • Do NOT put in a password when it asks you to, just press enter. The signing key will be used in GitHub Actions and will not work if it is encrypted.

Warning

Be careful to never accidentally commit cosign.key into your git repo.

  1. Add the private key to GitHub

    • This can also be done manually. Go to your repository settings, under Secrets and Variables -> Actions image Add a new secret and name it SIGNING_SECRET, then paste the contents of cosign.key into the secret and save it. Make sure it's the .key file and not the .pub file. Once done, it should look like this: image

    • (CLI instructions) If you have the github-cli installed, run:

    gh secret set SIGNING_SECRET < cosign.key
    
  2. Commit the cosign.pub file into your git repository