mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 02:47:56 +01:00
Add tests for 42 (#161)
Co-authored-by: Jason N. <33561705+JasonN3@users.noreply.github.com>
This commit is contained in:
parent
d2186329e4
commit
45fec1fc9d
4 changed files with 39 additions and 28 deletions
23
.github/workflows/build_vars.yml
vendored
23
.github/workflows/build_vars.yml
vendored
|
|
@ -9,9 +9,9 @@ on:
|
|||
value: '
|
||||
{
|
||||
"version": [
|
||||
"39",
|
||||
"40",
|
||||
"41"
|
||||
"41",
|
||||
"42"
|
||||
],
|
||||
"flatpaks": [
|
||||
"false",
|
||||
|
|
@ -20,6 +20,7 @@ on:
|
|||
],
|
||||
"image_repo": [
|
||||
"ghcr.io/ublue-os",
|
||||
"quay.io/fedora",
|
||||
"quay.io/fedora-ostree-desktops"
|
||||
],
|
||||
"include": [
|
||||
|
|
@ -28,20 +29,22 @@ on:
|
|||
"image_name": "base-main",
|
||||
},
|
||||
{
|
||||
"image_repo": "quay.io/fedora-ostree-desktops",
|
||||
"version": "40",
|
||||
"image_name": "base"
|
||||
"image_repo": "quay.io/fedora",
|
||||
"image_name": "fedora-bootc"
|
||||
},
|
||||
{
|
||||
"image_repo": "quay.io/fedora-ostree-desktops",
|
||||
"version": "41",
|
||||
"image_name": "base-atomic"
|
||||
}
|
||||
],
|
||||
"exclude": [
|
||||
{
|
||||
"image_repo": "quay.io/fedora-ostree-desktops",
|
||||
"version": "39"
|
||||
"image_repo": "quay.io/fedora",
|
||||
"flatpaks": "flatpak_refs_dir"
|
||||
},
|
||||
{
|
||||
"image_repo": "quay.io/fedora",
|
||||
"flatpaks": "flatpak_refs"
|
||||
},
|
||||
{
|
||||
"image_repo": "quay.io/fedora-ostree-desktops",
|
||||
|
|
@ -50,6 +53,10 @@ on:
|
|||
{
|
||||
"image_repo": "quay.io/fedora-ostree-desktops",
|
||||
"flatpaks": "flatpak_refs"
|
||||
},
|
||||
{
|
||||
"image_repo": "quay.io/fedora-ostree-desktops",
|
||||
"version": "40"
|
||||
}
|
||||
]
|
||||
}'
|
||||
|
|
|
|||
32
Makefile
32
Makefile
|
|
@ -27,7 +27,7 @@ export install_pkg
|
|||
_IMAGE_REPO_ESCAPED := $(subst /,\/,$(IMAGE_REPO))
|
||||
_IMAGE_REPO_DOUBLE_ESCAPED := $(subst \,\\\,$(_IMAGE_REPO_ESCAPED))
|
||||
_LORAX_ARGS :=
|
||||
_LORAX_TEMPLATES := $(call get_templates,install)
|
||||
export _LORAX_TEMPLATES := $(call get_templates,install) lorax_templates/install_include_post.tmpl
|
||||
_REPO_FILES := $(subst /etc/yum.repos.d,repos,$(REPOS))
|
||||
_TEMP_DIR := $(shell mktemp -d)
|
||||
_TEMPLATE_VARS := ARCH IMAGE_NAME IMAGE_REPO _IMAGE_REPO_DOUBLE_ESCAPED _IMAGE_REPO_ESCAPED IMAGE_SIGNED IMAGE_TAG REPOS _RHEL VARIANT VERSION WEB_UI
|
||||
|
|
@ -35,7 +35,7 @@ _VOLID := $(firstword $(subst -, ,$(IMAGE_NAME)))-$(ARCH)-$(
|
|||
|
||||
ifeq ($(findstring redhat.repo,$(REPOS)),redhat.repo)
|
||||
export _RHEL := true
|
||||
_LORAX_TEMPLATES += $(call get_templates,rhel)
|
||||
export _LORAX_TEMPLATES += $(call get_templates,rhel)
|
||||
else
|
||||
undefine _RHEL
|
||||
endif
|
||||
|
|
@ -53,17 +53,17 @@ _LORAX_ARGS += -i anaconda-webui
|
|||
endif
|
||||
|
||||
ifneq ($(DNF_CACHE),)
|
||||
_LORAX_ARGS += --cachedir $(DNF_CACHE)
|
||||
_LORAX_TEMPLATES += $(call get_templates,cache)
|
||||
_TEMPLATE_VARS += DNF_CACHE
|
||||
_LORAX_ARGS += --cachedir $(DNF_CACHE)
|
||||
export _LORAX_TEMPLATES += $(call get_templates,cache)
|
||||
_TEMPLATE_VARS += DNF_CACHE
|
||||
endif
|
||||
|
||||
ifneq ($(FLATPAK_DIR),)
|
||||
_FLATPAK_REPO_GPG := $(shell curl -L $(FLATPAK_REMOTE_URL) | grep -i '^GPGKey=' | cut -d= -f2)
|
||||
_FLATPAK_REPO_GPG := $(shell curl -L $(FLATPAK_REMOTE_URL) | grep -i '^GPGKey=' | cut -d= -f2)
|
||||
export _FLATPAK_REPO_URL := $(shell curl -L $(FLATPAK_REMOTE_URL) | grep -i '^URL=' | cut -d= -f2)
|
||||
_LORAX_ARGS += -i flatpak-libs
|
||||
_LORAX_TEMPLATES += $(call get_templates,flatpak)
|
||||
_TEMPLATE_VARS += FLATPAK_DIR FLATPAK_REMOTE_NAME FLATPAK_REMOTE_REFS FLATPAK_REMOTE_URL _FLATPAK_REPO_GPG _FLATPAK_REPO_URL
|
||||
_LORAX_ARGS += -i flatpak-libs
|
||||
export _LORAX_TEMPLATES += $(call get_templates,flatpak)
|
||||
_TEMPLATE_VARS += FLATPAK_DIR FLATPAK_REMOTE_NAME FLATPAK_REMOTE_REFS FLATPAK_REMOTE_URL _FLATPAK_REPO_GPG _FLATPAK_REPO_URL
|
||||
else
|
||||
ifneq ($(FLATPAK_REMOTE_REFS_DIR),)
|
||||
COLLECTED_REFS := $(foreach file,$(filter-out README.md Makefile,$(wildcard $(FLATPAK_REMOTE_REFS_DIR)/*)),$(shell cat $(file)))
|
||||
|
|
@ -71,19 +71,19 @@ export FLATPAK_REMOTE_REFS += $(sort $(COLLECTED_REFS))
|
|||
endif
|
||||
|
||||
ifneq ($(FLATPAK_REMOTE_REFS),)
|
||||
_FLATPAK_REPO_GPG := $(shell curl -L $(FLATPAK_REMOTE_URL) | grep -i '^GPGKey=' | cut -d= -f2)
|
||||
_FLATPAK_REPO_GPG := $(shell curl -L $(FLATPAK_REMOTE_URL) | grep -i '^GPGKey=' | cut -d= -f2)
|
||||
export _FLATPAK_REPO_URL := $(shell curl -L $(FLATPAK_REMOTE_URL) | grep -i '^URL=' | cut -d= -f2)
|
||||
_LORAX_ARGS += -i flatpak-libs
|
||||
_LORAX_TEMPLATES += $(call get_templates,flatpak) \
|
||||
external/fedora-lorax-templates/ostree-based-installer/lorax-embed-flatpaks.tmpl
|
||||
_TEMPLATE_VARS += FLATPAK_DIR FLATPAK_REMOTE_NAME FLATPAK_REMOTE_REFS FLATPAK_REMOTE_URL _FLATPAK_REPO_GPG _FLATPAK_REPO_URL
|
||||
_LORAX_ARGS += -i flatpak-libs
|
||||
export _LORAX_TEMPLATES += $(call get_templates,flatpak) \
|
||||
external/fedora-lorax-templates/ostree-based-installer/lorax-embed-flatpaks.tmpl
|
||||
_TEMPLATE_VARS += FLATPAK_DIR FLATPAK_REMOTE_NAME FLATPAK_REMOTE_REFS FLATPAK_REMOTE_URL _FLATPAK_REPO_GPG _FLATPAK_REPO_URL
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
ifneq ($(SECURE_BOOT_KEY_URL),)
|
||||
_LORAX_TEMPLATES += $(call get_templates,secureboot)
|
||||
_TEMPLATE_VARS += ENROLLMENT_PASSWORD
|
||||
export _LORAX_TEMPLATES += $(call get_templates,secureboot)
|
||||
_TEMPLATE_VARS += ENROLLMENT_PASSWORD
|
||||
endif
|
||||
|
||||
_SUBDIRS := container external flatpak_refs lorax_templates repos xorriso test
|
||||
|
|
|
|||
|
|
@ -39,10 +39,14 @@ endef
|
|||
post_%.tmpl: scripts/post/%
|
||||
$(call convert_post_to_tmpl,$*,usr/share/anaconda/post-scripts/$*.ks,true)
|
||||
|
||||
install_include_post.tmpl:
|
||||
echo '<%page />' > install_include_post.tmpl
|
||||
for file in $(patsubst post_%.tmpl, %, $(filter post_%, $(notdir $(_LORAX_TEMPLATES)))); do echo "append usr/share/anaconda/interactive-defaults.ks \"%include /usr/share/anaconda/post-scripts/$${file}.ks\"" >> install_include_post.tmpl; done
|
||||
|
||||
install-deps:
|
||||
|
||||
FILES=$(wildcard post_*)
|
||||
FILES=$(wildcard post_*) install_include_post.tmpl
|
||||
clean:
|
||||
ifneq ($(FILES),)
|
||||
rm -Rf $(FILES)
|
||||
endif
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ ansible_inventory:
|
|||
.PHONY: $(VM_TESTS) install-deps
|
||||
|
||||
install-deps:
|
||||
$(install_pkg) qemu qemu-utils xorriso qemu-system-x86 netcat socat jq ansible curl
|
||||
$(install_pkg) qemu-system qemu-utils xorriso qemu-system-x86 ncat socat jq ansible curl
|
||||
|
||||
files/mnt/iso:
|
||||
$(if $(wildcard files/mnt),,mkdir files/mnt)
|
||||
|
|
@ -97,4 +97,4 @@ start_vm: install_os
|
|||
fi
|
||||
|
||||
echo "VM ready for tests at IP $(VM_IP):$(VM_PORT)"
|
||||
echo $$QEMU_PID > start_vm
|
||||
echo $$QEMU_PID > start_vm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue