default: image: $CONTAINER_REGISTRY_DOMAIN_WITH_ORG/gitlab-runner-image variables: VM_DISK_OUTPUT_DIR: "/rockyDisks/" SECURE_FILES_DOWNLOAD_PATH: "/secureFiles" build-builder-vm-disk: stage: build rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" changes: - scripts/utils/**/* - scripts/setupBuilder/**/* variables: # Values should match the ones in .devcontainer/.env ROCKY_VERSION: "9.4" VM_DISK_FILE_TO_DOWNLOAD: "Rocky-9-GenericCloud-Base-9.4-20240609.0.x86_64.qcow2" BASE_DISK_FILEPATH: "$VM_DISK_OUTPUT_DIR/$VM_DISK_FILE_TO_DOWNLOAD" OUTPUT_FILE_PATH: "$VM_DISK_OUTPUT_DIR/$VM_DISK_FILE_TO_DOWNLOAD-$CI_COMMIT_SHA" script: - ./scripts/setupBuilder/main.sh # 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 rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" changes: - scripts/utils/**/* - scripts/setupBuilder/**/* - scripts/buildPushBootcContainerImage/**/* variables: OUTPUT_BOOTC_IMAGE_NAME: "rocky9-bootc:$CI_COMMIT_SHA" OUTPUT_BOOTC_IMAGE_NAME_LATEST: "rocky9-bootc:latest" script: - ./scripts/buildPushBootcContainerImage/main.sh