Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpc-factory
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Krish Moodbidri
hpc-factory
Commits
38d78adb
Commit
38d78adb
authored
6 months ago
by
Krish Moodbidri
Browse files
Options
Downloads
Patches
Plain Diff
test compute build
parent
eff48b29
No related branches found
No related tags found
1 merge request
!1
Feat add compute
Pipeline
#12342
failed with stage
Stage: build
in 35 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+8
-2
8 additions, 2 deletions
.gitlab-ci.yml
with
8 additions
and
2 deletions
.gitlab-ci.yml
+
8
−
2
View file @
38d78adb
...
...
@@ -115,7 +115,7 @@ build_compute_image:
-
*update_ansible_repo
-
*get_ansible_files
-
export PKR_VAR_flavor="${COMPUTE_BUILD_FLAVOR:-$PKR_VAR_flavor}"
-
export PKR_VAR_build_instance_name="${BUILD_TARGET}-${C
OMPUTE
_XCBC_HEAD}"
-
export PKR_VAR_build_instance_name="${BUILD_TARGET}-${C
RI
_XCBC_HEAD}"
-
export PKR_VAR_image_date_suffix=false
-
|
if [ $CI_PIPELINE_SOURCE == 'merge_request_event' ]; then
...
...
@@ -123,7 +123,13 @@ build_compute_image:
elif [ $CI_PIPELINE_SOURCE == 'schedule' ]; then
export PKR_VAR_image_name="${BUILD_TARGET}-${BUILD_DATE}"
fi
# packer commands
-
packer init openstack-compute
-
packer validate openstack-compute
-
packer build -machine-readable openstack-compute | tee compute_build.log
-
export BUILT_COMPUTE_IMAGE_ID=$(grep 'Image:' compute_build.log | awk '{print $4}')
-
echo BUILT_COMPUTE_IMAGE_ID=${BUILT_COMPUTE_IMAGE_ID} | tee -a $CI_PROJECT_DIR/image.env
-
openstack image set --property CRI_XCBC_prod=${CRI_XCBC_prod} --property CRI_XCBC_dev=${CRI_XCBC_dev} --property PACKER_IMAGE_HEAD=${PACKER_IMAGE_HEAD} ${BUILT_COMPUTE_IMAGE_ID}
rules
:
-
if
:
$PIPELINE_TARGET == "build"
when
:
always
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment