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
3
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
Packer Openstack Hpc Image
Commits
227e0987
Commit
227e0987
authored
2 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Update yaml syntax for multilines
parent
32a0498b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+14
-17
14 additions, 17 deletions
.gitlab-ci.yml
with
14 additions
and
17 deletions
.gitlab-ci.yml
+
14
−
17
View file @
227e0987
...
...
@@ -32,7 +32,7 @@ setup_environment:
tags
:
-
build
script
:
-
>
-
|
if [ ! -f $CI_PROJECT_DIR/bin/packer ]; then
wget https://releases.hashicorp.com/packer/1.8.3/packer_1.8.3_linux_amd64.zip
unzip packer_1.8.3_linux_amd64.zip -d bin
...
...
@@ -44,7 +44,7 @@ setup_environment:
-
source venv/bin/activate
-
pip install --upgrade pip
-
pip install s3cmd ansible
-
>
-
|
if cd CRI_XCBC; then
git checkout uab-prod; git pull;
git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*';
...
...
@@ -53,14 +53,13 @@ setup_environment:
cd CRI_XCBC;
git remote add upstream https://github.com/jprorama/CRI_XCBC.git
fi
-
>
git config user.name "${GIT_AUTHOR_NAME}";
git config user.email "${GIT_AUTHOR_EMAIL}";
git fetch upstream;
git fetch upstream '+refs/pull/*/head:refs/remotes/upstream/pr/*';
git checkout -b integration;
git merge upstream/uab-dev;
cd ..;
-
git config user.name "${GIT_AUTHOR_NAME}"
-
git config user.email "${GIT_AUTHOR_EMAIL}"
-
git fetch upstream
-
git fetch upstream '+refs/pull/*/head:refs/remotes/upstream/pr/*'
-
git checkout -b integration
-
git merge upstream/uab-dev
-
cd ..
-
s3cmd get --force --host=$AWS_HOST --host-bucket=$AWS_HOST s3://ood-config/group_vars/all CRI_XCBC/group_vars/prod
-
s3cmd get --force -r --host=$AWS_HOST --host-bucket=$AWS_HOST s3://cheaha-cloud-ansible-files/ ansible/files/
...
...
@@ -78,8 +77,7 @@ build_image:
-
sed -i 's/\(\"--extra-vars\)/\"-vvv\", \1/' openstack-ood/nodeimage.pkr.hcl
-
sed -i 's/inventory_file.*/extra_arguments=[\"-vvv\"]/' openstack-ood/nodeimage.pkr.hcl
-
cat openstack-ood/nodeimage.pkr.hcl
-
>
PKR_VAR_image_date_suffix=true PKR_VAR_image_name=ood $CI_PROJECT_DIR/bin/packer build openstack-ood
-
PKR_VAR_image_date_suffix=true PKR_VAR_image_name=ood $CI_PROJECT_DIR/bin/packer build openstack-ood
cleanup
:
when
:
always
...
...
@@ -87,8 +85,7 @@ cleanup:
tags
:
-
build
script
:
-
>
cd CRI_XCBC;
git reset --hard;
git checkout uab-prod;
git branch -D integration;
-
cd CRI_XCBC
-
git reset --hard
-
git checkout uab-prod
-
git branch -D integration
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