chore: refactor get-aurora-dev/common image declaration (#1374)
* chore: refactor where get-aurora-dev/common image is declared * feat: build with common sha of image-versions.yml * feat: verify common image with cosign * fix: just dance * chore: don't specifcy tag of common This is not needed, it was not broken or anything. The build pulls in the pinned version specified in image.yml * chore: see previous commit * fix: add common image tag + sha to verification step --------- Co-authored-by: renner <renner0@posteo.de> Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> Co-authored-by: inffy <10782843+inffy@users.noreply.github.com>
This commit is contained in:
parent
6c7ab4e1b4
commit
b3d90b323d
3 changed files with 16 additions and 0 deletions
|
|
@ -2,6 +2,10 @@ ARG BASE_IMAGE_NAME="kinoite"
|
|||
ARG FEDORA_MAJOR_VERSION="41"
|
||||
ARG SOURCE_IMAGE="${BASE_IMAGE_NAME}-main"
|
||||
ARG BASE_IMAGE="ghcr.io/ublue-os/${SOURCE_IMAGE}"
|
||||
ARG COMMON_IMAGE="ghcr.io/get-aurora-dev/common:latest"
|
||||
ARG COMMON_IMAGE_SHA=""
|
||||
|
||||
FROM ${COMMON_IMAGE}@${COMMON_IMAGE_SHA} AS common
|
||||
|
||||
FROM scratch AS ctx
|
||||
COPY /system_files /system_files
|
||||
|
|
|
|||
7
Justfile
7
Justfile
|
|
@ -1,6 +1,7 @@
|
|||
repo_organization := "ublue-os"
|
||||
rechunker_image := "ghcr.io/hhd-dev/rechunk:v1.2.4@sha256:8a84bd5a029681aa8db523f927b7c53b5aded9b078b81605ac0a2fedc969f528"
|
||||
iso_builder_image := "ghcr.io/jasonn3/build-container-installer:v1.4.0@sha256:a6b52ef0b410a625d7abd16f0467d257ef8db1ec94f672a89d5b95cb25487de1"
|
||||
common_image := "ghcr.io/get-aurora-dev/common:latest"
|
||||
images := '(
|
||||
[aurora]=aurora
|
||||
[aurora-dx]=aurora-dx
|
||||
|
|
@ -104,6 +105,8 @@ build $image="aurora" $tag="latest" $flavor="main" rechunk="0" ghcr="0" pipeline
|
|||
# Image Name
|
||||
image_name=$({{ just }} image_name {{ image }} {{ tag }} {{ flavor }})
|
||||
|
||||
common_image_sha=$(yq -r '.images[] | select(.name == "common") | .digest' image-versions.yml)
|
||||
|
||||
# Base Image
|
||||
base_image_name="kinoite"
|
||||
|
||||
|
|
@ -141,6 +144,8 @@ build $image="aurora" $tag="latest" $flavor="main" rechunk="0" ghcr="0" pipeline
|
|||
{{ just }} verify-container "akmods-nvidia-open:${akmods_flavor}-${fedora_version}-${kernel_release}"
|
||||
fi
|
||||
|
||||
{{ just }} verify-container "common:latest@${common_image_sha}" ghcr.io/get-aurora-dev https://raw.githubusercontent.com/get-aurora-dev/common/refs/heads/main/cosign.pub
|
||||
|
||||
# Get Version
|
||||
if [[ "${tag}" =~ stable ]]; then
|
||||
ver="${fedora_version}.$(date +%Y%m%d)"
|
||||
|
|
@ -168,6 +173,8 @@ build $image="aurora" $tag="latest" $flavor="main" rechunk="0" ghcr="0" pipeline
|
|||
fi
|
||||
BUILD_ARGS+=("--build-arg" "AKMODS_FLAVOR=${akmods_flavor}")
|
||||
BUILD_ARGS+=("--build-arg" "BASE_IMAGE_NAME=${base_image_name}")
|
||||
BUILD_ARGS+=("--build-arg" "COMMON_IMAGE={{ common_image }}")
|
||||
BUILD_ARGS+=("--build-arg" "COMMON_IMAGE_SHA=${common_image_sha}")
|
||||
BUILD_ARGS+=("--build-arg" "FEDORA_MAJOR_VERSION=${fedora_version}")
|
||||
BUILD_ARGS+=("--build-arg" "IMAGE_NAME=${image_name}")
|
||||
BUILD_ARGS+=("--build-arg" "IMAGE_VENDOR={{ repo_organization }}")
|
||||
|
|
|
|||
|
|
@ -3,3 +3,8 @@ images:
|
|||
image: ghcr.io/ublue-os/kinoite-main
|
||||
tag: latest
|
||||
digest: sha256:8d22e2a54f33e57fabf47b6987c8c2811b39b12b0d5bfe9b32e89a05dad8e638
|
||||
- name: common
|
||||
image: ghcr.io/get-aurora-dev/common
|
||||
tag: latest
|
||||
digest: sha256:72dbe6fad063b4b58ee05e28da0d9e6e29edf03a0d77322330829a2ef1eda663
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue