Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Openstack
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Wiki
Code
Merge requests
6
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
rc
Terraform Openstack
Commits
31f81563
Commit
31f81563
authored
1 year ago
by
Krish Moodbidri
Browse files
Options
Downloads
Patches
Plain Diff
test-volume create without snapshot
parent
967f80e8
No related branches found
No related tags found
1 merge request
!44
WIP: Feat vol download from s3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+2
-3
2 additions, 3 deletions
.gitlab-ci.yml
with
2 additions
and
3 deletions
.gitlab-ci.yml
+
2
−
3
View file @
31f81563
...
...
@@ -42,12 +42,11 @@ prep-deploy:
-
ls -l /tmp
-
openstack image create --container-format bare --disk-format raw --file /tmp/xdmod-dev-volume-snap.raw xdmod-snapshot-image
-
IMAGE_ID=$(openstack image show -f value -c id xdmod-snapshot-image)
-
openstack volume create --size 20 --image $IMAGE_ID xdmod-ci-volume
-
openstack volume snapshot create --force --volume xdmod-ci-volume xdmod-dev-volume-snap
-
|
if [ "$TARGET_ENV" = "dev" ]; then
TF_VAR_data_volume="xdmod-dev-volume-$BUILD_DATE"
openstack volume create --s
napshot xdmod-dev-volume-snap --size 20
$TF_VAR_data_volume
openstack volume create --s
ize 20 --image $IMAGE_ID
$TF_VAR_data_volume
elif [ "$TARGET_ENV" = "staging" ]; then
TF_VAR_data_volume="xdmod-staging-volume-$BUILD_DATE"
openstack volume create --snapshot xdmod-staging-vol-snapshot --size 150 $TF_VAR_data_volume
...
...
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