base-image-build/.gitlab-ci.yml

47 lines
1.7 KiB
YAML
Raw Normal View History

2024-08-11 10:31:31 +00:00
# default:
# image: $CONTAINER_REGISTRY_DOMAIN_WITH_ORG/gitlab-runner-image
2024-08-11 09:09:04 +00:00
2024-08-11 10:31:31 +00:00
# variables:
# VM_DISK_OUTPUT_DIR: "/rockyDisks"
# SECURE_FILES_DOWNLOAD_PATH: "/secureFiles"
2024-08-11 09:09:04 +00:00
2024-08-11 10:31:31 +00:00
# stages:
# - build
# - build-push
2024-08-11 09:16:38 +00:00
2024-08-11 10:31:31 +00:00
# build-builder-vm-disk:
# stage: build
# rules:
# - if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
# changes:
# - scripts/utils/**/*
# - scripts/setupBuilder/**/*
# - .gitlab-ci.yml
# artifacts:
# paths:
# - /rockyDisks
# 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
2024-08-11 09:09:04 +00:00
2024-08-11 10:31:31 +00:00
# # 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:
# stage: build-push
# rules:
# - if: $CI_PIPELINE_SOURCE == "push" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
# changes:
# - scripts/utils/**/*
# - scripts/setupBuilder/**/*
# - scripts/buildPushBootcContainerImage/**/*
# - .gitlab-ci.yml
# variables:
# OUTPUT_BOOTC_IMAGE_NAME: "rocky9-bootc:$CI_COMMIT_SHA"
# OUTPUT_BOOTC_IMAGE_NAME_LATEST: "rocky9-bootc:latest"
# script:
# - ./scripts/buildPushBootcContainerImage/main.sh