Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Packer Openstack Hpc Image
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
Ravi Tripathi
Packer Openstack Hpc Image
Commits
ddd845f0
Commit
ddd845f0
authored
1 year ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Reclaim the gpu even if pipeline fail
parent
b6116da0
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Update ravi89 main
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-1
6 additions, 1 deletion
.gitlab-ci.yml
with
6 additions
and
1 deletion
.gitlab-ci.yml
+
6
−
1
View file @
ddd845f0
...
@@ -158,6 +158,7 @@ build_gpu_image:
...
@@ -158,6 +158,7 @@ build_gpu_image:
script
:
script
:
-
*update_ansible_repo
-
*update_ansible_repo
-
*get_ansible_files
-
*get_ansible_files
-
FAILED=false
-
export GPU_PLACEHOLDER_NAME="gpu1-placeholder"
-
export GPU_PLACEHOLDER_NAME="gpu1-placeholder"
-
export GPU_PLACEHOLDER_FLAVOR="gpu1.medium"
-
export GPU_PLACEHOLDER_FLAVOR="gpu1.medium"
-
export GPU_PLACEHOLDER_IMAGE="CentOS-7-x86_64-GenericCloud-2009"
-
export GPU_PLACEHOLDER_IMAGE="CentOS-7-x86_64-GenericCloud-2009"
...
@@ -174,8 +175,12 @@ build_gpu_image:
...
@@ -174,8 +175,12 @@ build_gpu_image:
fi
fi
-
packer validate openstack-gpu
-
packer validate openstack-gpu
-
openstack server delete --wait $GPU_PLACEHOLDER_NAME
-
openstack server delete --wait $GPU_PLACEHOLDER_NAME
-
packer build -machine-readable openstack-gpu | tee gpu_build.log
-
packer build -machine-readable openstack-gpu | tee gpu_build.log
|| FAILED=true
-
openstack server create --image $GPU_PLACEHOLDER_IMAGE --network cicd-net --flavor $GPU_PLACEHOLDER_FLAVOR $GPU_PLACEHOLDER_NAME
-
openstack server create --image $GPU_PLACEHOLDER_IMAGE --network cicd-net --flavor $GPU_PLACEHOLDER_FLAVOR $GPU_PLACEHOLDER_NAME
-
|
if [ "$FAILED" = true ]; then
exit 1
fi
build_ood_image
:
build_ood_image
:
stage
:
build
stage
:
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