Merge branch 'more-tiers' into 'main'
Rework naming more in preparation for more tiers See merge request cgwalters-playground/bootc-demo-base-images!13
This commit is contained in:
commit
ebe3ea68a2
|
|
@ -5,12 +5,20 @@ image: quay.io/fedora/fedora-coreos:stable
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
test-build:
|
.base:
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
matrix:
|
||||||
- VARIANT:
|
- TIER: [tier-1]
|
||||||
- c9s
|
OS: centos
|
||||||
- fedora
|
VERSION: [stream9]
|
||||||
|
VARIANT: ["", "-rt"]
|
||||||
|
- TIER: [tier-1]
|
||||||
|
OS: fedora
|
||||||
|
VERSION: [38]
|
||||||
|
VARIANT: [""]
|
||||||
|
|
||||||
|
test-build:
|
||||||
|
extends: .base
|
||||||
only:
|
only:
|
||||||
- merge_requests
|
- merge_requests
|
||||||
stage: build
|
stage: build
|
||||||
|
|
@ -19,18 +27,14 @@ test-build:
|
||||||
- echo "$CI_REGISTRY_PASSWORD" | podman login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
- echo "$CI_REGISTRY_PASSWORD" | podman login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
||||||
script:
|
script:
|
||||||
- rpm-ostree install distribution-gpg-keys
|
- rpm-ostree install distribution-gpg-keys
|
||||||
- rpm-ostree compose image --initialize --format=ociarchive ${VARIANT}.yaml ${VARIANT}.ociarchive
|
- set -euo pipefail; rpm-ostree compose image --format=ociarchive --initialize ${OS}-${TIER}${VARIANT}-${VERSION}.yaml dest.oci-archive
|
||||||
|
|
||||||
build-push:
|
build-push:
|
||||||
parallel:
|
extends: .base
|
||||||
matrix:
|
|
||||||
- VARIANT:
|
|
||||||
- c9s
|
|
||||||
- fedora
|
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
variables:
|
variables:
|
||||||
COMPOSE_INITIALIZE: ""
|
COMPOSE_INITIALIZE: "1"
|
||||||
FORCE: ""
|
FORCE: ""
|
||||||
stage: build
|
stage: build
|
||||||
before_script:
|
before_script:
|
||||||
|
|
@ -38,5 +42,5 @@ build-push:
|
||||||
- echo "$CI_REGISTRY_PASSWORD" | podman login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
- echo "$CI_REGISTRY_PASSWORD" | podman login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
||||||
script:
|
script:
|
||||||
- rpm-ostree install distribution-gpg-keys
|
- rpm-ostree install distribution-gpg-keys
|
||||||
- rpm-ostree compose image ${COMPOSE_INITIALIZE:+--initialize} ${FORCE:+--force-nocache} --format=registry ${VARIANT}.yaml ${CI_REGISTRY_IMAGE}/${VARIANT}-boot
|
- set -euo pipefail; rpm-ostree compose image ${COMPOSE_INITIALIZE:+--initialize} ${FORCE:+--force-nocache} --format=registry ${OS}-${TIER}${VARIANT}-${VERSION}.yaml ${CI_REGISTRY_IMAGE}/${OS}-boot-${TIER}${VARIANT}:${VERSION}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
include:
|
include:
|
||||||
- c9s-base.yaml
|
- centos-base.yaml
|
||||||
- tier-1/kernel-rt.yaml
|
- tier-1/kernel-rt.yaml
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
include:
|
include:
|
||||||
- c9s-base.yaml
|
- centos-base.yaml
|
||||||
- tier-1/kernel.yaml
|
- tier-1/kernel.yaml
|
||||||
|
|
||||||
Loading…
Reference in New Issue