From 3932ccd0605f520e4b4a249797fdeb907ffbb7c3 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 8 Sep 2023 17:25:04 +0000 Subject: [PATCH] ci: Split MR versus prod builds --- .gitlab-ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cc9cda0..46bd10c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,7 +5,18 @@ image: quay.io/fedora/fedora-coreos:stable stages: - build -build: +test-build: + stage: build + before_script: + # Log into the registry + - 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 + +build-push: + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH variables: COMPOSE_INITIALIZE: "" FORCE: ""