ci: fixing pipeline

This commit is contained in:
Radostin Emanuilov 2024-08-11 09:16:38 +00:00 committed by Radostin Emanuilov
parent 0fd1835f70
commit f92dd63263

View File

@ -2,9 +2,13 @@ default:
image: $CONTAINER_REGISTRY_DOMAIN_WITH_ORG/gitlab-runner-image
variables:
VM_DISK_OUTPUT_DIR: "/rockyDisks/"
VM_DISK_OUTPUT_DIR: "/rockyDisks"
SECURE_FILES_DOWNLOAD_PATH: "/secureFiles"
stages:
- build
- build-push
build-builder-vm-disk:
stage: build
rules:
@ -12,6 +16,9 @@ build-builder-vm-disk:
changes:
- scripts/utils/**/*
- scripts/setupBuilder/**/*
artifacts:
paths:
- /rockyDisks
variables:
# Values should match the ones in .devcontainer/.env
ROCKY_VERSION: "9.4"
@ -24,8 +31,7 @@ build-builder-vm-disk:
# This job is NOT using the host's Docker, but the one within the VM that is generated from the job above
# The VM is needed due to the bootc build process requiring a full Rocky host to be used for it
build-push-base-image:
depends_on: build-builder-vm-disk
stage: build
stage: build-push
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes: