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
f41b6793
Commit
f41b6793
authored
6 months ago
by
Eesaan Atluri
Committed by
Krish Moodbidri
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Change compute reference to login in build
parent
82d1fb46
No related branches found
Branches containing commit
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
+7
-8
7 additions, 8 deletions
.gitlab-ci.yml
with
7 additions
and
8 deletions
.gitlab-ci.yml
+
7
−
8
View file @
f41b6793
...
@@ -134,7 +134,7 @@ build_ssh_proxy_image:
...
@@ -134,7 +134,7 @@ build_ssh_proxy_image:
-
if
:
$PIPELINE_TARGET == "build" && $BUILD_TARGET == "ssh-proxy"
-
if
:
$PIPELINE_TARGET == "build" && $BUILD_TARGET == "ssh-proxy"
when
:
always
when
:
always
.build_
compute
_image_template
:
&build_
compute
_image_template
.build_
login
_image_template
:
&build_
login
_image_template
script
:
script
:
-
*update_ansible_repo
-
*update_ansible_repo
-
*get_ansible_files
-
*get_ansible_files
...
@@ -151,15 +151,14 @@ build_ssh_proxy_image:
...
@@ -151,15 +151,14 @@ build_ssh_proxy_image:
# packer commands
# packer commands
-
packer init openstack-compute
-
packer init openstack-compute
-
packer validate openstack-compute
-
packer validate openstack-compute
-
packer build -machine-readable openstack-compute | tee compute_build.log
-
packer build -machine-readable openstack-compute | tee login_build.log
-
export BUILT_COMPUTE_IMAGE_ID=$(grep 'Image:' compute_build.log | awk '{print $4}')
-
export BUILT_LOGIN_IMAGE_ID=$(grep 'Image:' login_build.log | awk '{print $4}')
-
echo BUILT_COMPUTE_IMAGE_ID=${BUILT_COMPUTE_IMAGE_ID} | tee -a $CI_PROJECT_DIR/image.env
-
echo BUILT_LOGIN_IMAGE_ID=${BUILT_LOGIN_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}
artifacts
:
artifacts
:
reports
:
reports
:
dotenv
:
image.env
dotenv
:
image.env
build_
compute
_image
:
build_
login
_image
:
stage
:
build
stage
:
build
environment
:
environment
:
name
:
$ENV
name
:
$ENV
...
@@ -167,9 +166,9 @@ build_compute_image:
...
@@ -167,9 +166,9 @@ build_compute_image:
-
build
-
build
variables
:
variables
:
PROXY_ENABLE_VAR
:
"
enable_compute"
PROXY_ENABLE_VAR
:
"
enable_compute"
<<
:
*build_
compute
_image_template
<<
:
*build_
login
_image_template
rules
:
rules
:
-
if
:
$PIPELINE_TARGET == "build" && $BUILD_TARGET == "
compute
"
-
if
:
$PIPELINE_TARGET == "build" && $BUILD_TARGET == "
login
"
when
:
always
when
:
always
build_http_proxy_image
:
build_http_proxy_image
:
...
...
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