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
0
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
Bo-Chun Chen
hpc-factory
Commits
d426ee31
Commit
d426ee31
authored
5 months ago
by
Krish Moodbidri
Committed by
Bo-Chun Chen
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
changed compute built to be similar to proxy node builds
parent
594c0df5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+20
-9
20 additions, 9 deletions
.gitlab-ci.yml
with
20 additions
and
9 deletions
.gitlab-ci.yml
+
20
−
9
View file @
d426ee31
...
...
@@ -110,15 +110,13 @@ workflow:
reports
:
dotenv
:
image.env
build_compute_image
:
stage
:
build
tags
:
-
build
.build_compute_image_template
:
&build_compute_image_template
script
:
-
*update_ansible_repo
-
*get_ansible_files
-
export PKR_VAR_flavor="${COMPUTE_BUILD_FLAVOR:-$PKR_VAR_flavor}"
-
export PKR_VAR_build_instance_name="${BUILD_TARGET}-${CRI_XCBC_HEAD}"
# packer vars for job env
-
export PKR_VAR_flavor="${PROXY_BUILD_FLAVOR:-$PKR_VAR_flavor}"
-
export PKR_VAR_build_instance_name="${BUILD_TARGET}-${EXT_REPO_HEAD}"
-
export PKR_VAR_image_date_suffix=false
-
|
if [ $CI_PIPELINE_SOURCE == 'merge_request_event' ]; then
...
...
@@ -132,12 +130,25 @@ build_compute_image:
-
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}
# set image properties with repo state
-
openstack image set --property EXT_PR_SRC_REPO=${EXT_PR_SRC_REPO} --property EXT_PR_SRC_BRANCH_SHA=${EXT_PR_SRC_BRANCH_SHA} --property EXT_PR_TARGET_REPO=${EXT_PR_TARGET_REPO} --property EXT_PR_TARGET_BRANCH_SHA=${EXT_PR_TARGET_BRANCH_SHA} --property PACKER_IMAGE_HEAD=${PACKER_IMAGE_HEAD} ${BUILT_COMPUTE_IMAGE_ID}
artifacts
:
reports
:
dotenv
:
image.env
build_compute_image
:
stage
:
build
environment
:
name
:
$ENV
tags
:
-
build
variables
:
PROXY_ENABLE_VAR
:
"
enable_compute"
<<
:
*build_compute_image_template
rules
:
-
if
:
$PIPELINE_TARGET == "build"
-
if
:
$PIPELINE_TARGET == "build"
&& $BUILD_TARGET == "http-proxy"
when
:
always
build_http_proxy_image
:
stage
:
build
environment
:
...
...
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