From b501ea1b97e251c12ff84f07ae91143031097e82 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 8 Sep 2023 18:43:02 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 264e401..428bd5c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,11 @@ stages: - build test-build: + parallel: + matrix: + - VARIANT: + - c9s + - fedora only: - merge_requests stage: build @@ -14,9 +19,14 @@ test-build: - echo "$CI_REGISTRY_PASSWORD" | podman login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY script: - rpm-ostree install distribution-gpg-keys - - rpm-ostree compose image --initialize --format=ociarchive fedora.yaml fedora.ociarchive + - rpm-ostree compose image --initialize --format=ociarchive ${VARIANT}.yaml ${VARIANT}.ociarchive build-push: + parallel: + matrix: + - VARIANT: + - c9s + - fedora rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH variables: @@ -28,5 +38,5 @@ build-push: - echo "$CI_REGISTRY_PASSWORD" | podman login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY script: - rpm-ostree install distribution-gpg-keys - - rpm-ostree compose image ${COMPOSE_INITIALIZE:+--initialize} ${FORCE:+--force-nocache} --format=registry fedora.yaml ${CI_REGISTRY_IMAGE}/fedora + - rpm-ostree compose image ${COMPOSE_INITIALIZE:+--initialize} ${FORCE:+--force-nocache} --format=registry ${VARIANT}.yaml ${CI_REGISTRY_IMAGE}/${VARIANT}-boot