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
9e62801b
Commit
9e62801b
authored
2 years ago
by
Krish Moodbidri
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
a20fdc58
No related branches found
No related tags found
1 merge request
!6
Add CD feature to the repo
Pipeline
#7866
passed with stages
in 1 minute and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+51
-0
51 additions, 0 deletions
.gitlab-ci.yml
with
51 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
51
−
0
View file @
9e62801b
image
:
gitlab.rc.uab.edu:4567/rc/packer-openstack-hpc-image:latest
variables
:
ANSIBLE_REMOTE_TMP
:
"
/tmp"
OS_REGION_NAME
:
"
bhm1"
OS_INTERFACE
:
"
public"
OS_IDENTITY_API_VERSION
:
"
3"
OS_AUTH_TYPE
:
"
v3applicationcredential"
OS_AUTH_URL
:
"
https://keystone.cloud.rc.uab.edu:5000/v3"
PKR_VAR_external_net
:
"
fe323451-86c9-43c0-b46f-33f3f3f6ce14"
PKR_VAR_internal_net
:
"
166527dd-5f67-4577-ade9-f0b84677aaa7"
PKR_VAR_instance_floating_ip_net
:
"
acc19436-59c4-4bce-a4ab-a115be45ceb9"
PKR_VAR_build_instance_name
:
"
ohpc"
PKR_VAR_build_image_name
:
"
xdmod"
PKR_VAR_ssh_username
:
"
centos"
PKR_VAR_ssh_keypair_name
:
"
dev"
PKR_VAR_flavor
:
"
m1.medium"
PKR_VAR_source_image_name
:
"
CentOS-7-x86_64-GenericCloud-1905"
GIT_SUBMODULE_STRATEGY
:
recursive
stages
:
# List of stages for jobs, and their order of execution
-
build
-
test
-
deploy
build_packer
:
stage
:
build
tags
:
[
build
]
script
:
-
terraform --version
unit-test-job
:
# This job runs in the test stage.
stage
:
test
# It only starts when the job in the build stage completes successfully.
script
:
-
echo "Running unit tests... This will take about 60 seconds."
-
sleep
60
-
echo "Code coverage is 90%"
lint-test-job
:
# This job also runs in the test stage.
stage
:
test
# It can run at the same time as unit-test-job (in parallel).
script
:
-
echo "Linting code... This will take about 10 seconds."
-
sleep
10
-
echo "No lint issues found."
deploy-job
:
# This job runs in the deploy stage.
stage
:
deploy
# It only runs when *both* jobs in the test stage complete successfully.
environment
:
production
script
:
-
echo "Deploying application..."
-
echo "Application successfully deployed."
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