parent
c21a24a15b
commit
de17d5f8d4
|
|
@ -1,46 +0,0 @@
|
||||||
|
|
||||||
image: registry.gitlab.com/centos/cloud/sagano-builder/centos:stream9
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- build
|
|
||||||
|
|
||||||
.base:
|
|
||||||
tags:
|
|
||||||
- platform-engineering
|
|
||||||
parallel:
|
|
||||||
matrix:
|
|
||||||
- TIER:
|
|
||||||
- tier-0
|
|
||||||
- tier-1
|
|
||||||
OS: centos
|
|
||||||
VERSION: [stream9]
|
|
||||||
VARIANT: ["", "-rt"]
|
|
||||||
- TIER:
|
|
||||||
- tier-0
|
|
||||||
- tier-1
|
|
||||||
OS: fedora
|
|
||||||
VERSION: ["eln"]
|
|
||||||
VARIANT: ["", "-dev"]
|
|
||||||
.default-target: fedora-tier-1-eln
|
|
||||||
|
|
||||||
test-build:
|
|
||||||
extends: .base
|
|
||||||
only:
|
|
||||||
- merge_requests
|
|
||||||
stage: build
|
|
||||||
script:
|
|
||||||
- set -euo pipefail; rpm-ostree compose image --format=ociarchive --initialize ${OS}-${TIER}${VARIANT}-${VERSION}.yaml dest.oci-archive
|
|
||||||
|
|
||||||
build-push:
|
|
||||||
extends: .base
|
|
||||||
rules:
|
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
||||||
variables:
|
|
||||||
COMPOSE_INITIALIZE: "1"
|
|
||||||
FORCE: ""
|
|
||||||
stage: build
|
|
||||||
before_script:
|
|
||||||
# Log into the registry
|
|
||||||
- echo "$CI_REGISTRY_PASSWORD" | skopeo login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
|
|
||||||
script:
|
|
||||||
- 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}
|
|
||||||
Loading…
Reference in New Issue