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 image: $CONTAINER_REGISTRY_DOMAIN_WITH_ORG/gitlab-runner-image
variables: variables:
VM_DISK_OUTPUT_DIR: "/rockyDisks/" VM_DISK_OUTPUT_DIR: "/rockyDisks"
SECURE_FILES_DOWNLOAD_PATH: "/secureFiles" SECURE_FILES_DOWNLOAD_PATH: "/secureFiles"
stages:
- build
- build-push
build-builder-vm-disk: build-builder-vm-disk:
stage: build stage: build
rules: rules:
@ -12,6 +16,9 @@ build-builder-vm-disk:
changes: changes:
- scripts/utils/**/* - scripts/utils/**/*
- scripts/setupBuilder/**/* - scripts/setupBuilder/**/*
artifacts:
paths:
- /rockyDisks
variables: variables:
# Values should match the ones in .devcontainer/.env # Values should match the ones in .devcontainer/.env
ROCKY_VERSION: "9.4" 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 # 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 # The VM is needed due to the bootc build process requiring a full Rocky host to be used for it
build-push-base-image: build-push-base-image:
depends_on: build-builder-vm-disk stage: build-push
stage: build
rules: rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes: changes: