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
a5fdd6ac
Commit
a5fdd6ac
authored
6 months ago
by
Krish Moodbidri
Committed by
Bo-Chun Chen
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
changed compute build structure
parent
28aec52b
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
+3
-9
3 additions, 9 deletions
.gitlab-ci.yml
with
3 additions
and
9 deletions
.gitlab-ci.yml
+
3
−
9
View file @
a5fdd6ac
...
@@ -117,21 +117,15 @@ build_compute_image:
...
@@ -117,21 +117,15 @@ build_compute_image:
script
:
script
:
-
*update_ansible_repo
-
*update_ansible_repo
-
*get_ansible_files
-
*get_ansible_files
-
export PKR_VAR_source_image=${BUILT_BASE_IMAGE_ID}
-
export REPO_HEAD=$(git rev-parse --short HEAD)
-
export PKR_VAR_flavor="${COMPUTE_BUILD_FLAVOR:-$PKR_VAR_flavor}"
-
export PKR_VAR_flavor="${COMPUTE_BUILD_FLAVOR:-$PKR_VAR_flavor}"
-
export PKR_VAR_build_instance_name="
compute-${REPO
_HEAD}"
-
export PKR_VAR_build_instance_name="
${BUILD_TARGET}-${COMPUTE_XCBC
_HEAD}"
-
export PKR_VAR_image_date_suffix=false
-
export PKR_VAR_image_date_suffix=false
-
|
-
|
if [ $CI_PIPELINE_SOURCE == 'merge_request_event' ]; then
if [ $CI_PIPELINE_SOURCE == 'merge_request_event' ]; then
export PKR_VAR_image_name="
compute
-PR-${CI_MERGE_REQUEST_IID}"
export PKR_VAR_image_name="
${BUILD_TARGET}
-PR-${CI_MERGE_REQUEST_IID}"
elif [ $CI_PIPELINE_SOURCE == 'schedule' ]; then
elif [ $CI_PIPELINE_SOURCE == 'schedule' ]; then
export PKR_VAR_image_name="
compute
-${BUILD_DATE}"
export PKR_VAR_image_name="
${BUILD_TARGET}
-${BUILD_DATE}"
fi
fi
-
packer init openstack-compute
-
packer validate openstack-compute
-
packer build -machine-readable openstack-compute | tee compute_build.log
-
|
rules
:
rules
:
-
if
:
$PIPELINE_TARGET == "build"
-
if
:
$PIPELINE_TARGET == "build"
...
...
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