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
Compare revisions
main to feat-use-build-tag-if-set
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
krish94/hpc-factory
Select target project
No results found
feat-use-build-tag-if-set
Select Git revision
Swap
Target
rc/hpc-factory
Select target project
dwheel7/hpc-factory
rc/hpc-factory
louistw/hpc-factory
jpr/hpc-factory
krish94/hpc-factory
atlurie/hpc-factory
6 results
main
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (4)
Use BUILD_TAG if set, else fallback to BUILD_DATE
· a8a0c3d0
Krish Moodbidri
authored
3 months ago
a8a0c3d0
reuse BUILD_DATE if BUILD_TAG is set
· 2a609ba0
Krish Moodbidri
authored
3 months ago
2a609ba0
switched the BUILD TAG var from build date to PKR_VAR_image_name for cleaner code
· 7f1c6fb8
Krish Moodbidri
authored
2 months ago
7f1c6fb8
added the BUILD_TAG to the build_ood_image
· d39faf83
Krish Moodbidri
authored
2 months ago
d39faf83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-3
3 additions, 3 deletions
.gitlab-ci.yml
with
3 additions
and
3 deletions
.gitlab-ci.yml
View file @
d39faf83
...
...
@@ -85,7 +85,7 @@ workflow:
if [ $CI_PIPELINE_SOURCE == 'merge_request_event' ]; then
export PKR_VAR_image_name="${BUILD_TARGET}-PR-${CI_MERGE_REQUEST_IID}"
elif [ $CI_PIPELINE_SOURCE == 'schedule' ]; then
export PKR_VAR_image_name="${BUILD_TARGET}-${BUILD_DATE}"
export PKR_VAR_image_name="${BUILD_TARGET}-${BUILD_
TAG:-${BUILD_
DATE}
}
"
fi
# Ansible var overrides
-
|
...
...
@@ -148,7 +148,7 @@ build_ssh_proxy_image:
if [ $CI_PIPELINE_SOURCE == 'merge_request_event' ]; then
export PKR_VAR_image_name="${BUILD_TARGET}-PR-${CI_MERGE_REQUEST_IID}"
elif [ $CI_PIPELINE_SOURCE == 'schedule' ]; then
export PKR_VAR_image_name="${BUILD_TARGET}-${BUILD_DATE}"
export PKR_VAR_image_name="${BUILD_TARGET}-${BUILD_
TAG:-${BUILD_
DATE}
}
"
fi
# packer commands
-
packer init openstack-login
...
...
@@ -186,7 +186,7 @@ build_ood_image:
-
export PKR_VAR_flavor="${OOD_BUILD_FLAVOR:-$PKR_VAR_flavor}"
-
export PKR_VAR_build_instance_name="${BUILD_TARGET}-${EXT_REPO_HEAD}"
-
export PKR_VAR_image_date_suffix=false
-
export PKR_VAR_image_name="${BUILD_TARGET}-${BUILD_DATE}"
-
export PKR_VAR_image_name="${BUILD_TARGET}-${BUILD_
TAG:-${BUILD_
DATE}
}
"
-
|
if [ $ENV = 'knightly' ] || [ $ENV = 'prod' ]; then
curl --header "PRIVATE-TOKEN: ${ANSIBLE_VAR_TOKEN}" \
...
...
This diff is collapsed.
Click to expand it.