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
cf8f8dc2
Commit
cf8f8dc2
authored
2 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Add review app job
parent
dcbde614
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+28
-3
28 additions, 3 deletions
.gitlab-ci.yml
with
28 additions
and
3 deletions
.gitlab-ci.yml
+
28
−
3
View file @
cf8f8dc2
...
...
@@ -150,14 +150,39 @@ test:
-
|
if [ $CI_PIPELINE_SOURCE = "schedule" ]; then
openstack server remove floating ip $NEW_INSTANCE_ID $FLOATING_IP
else
openstack server delete $NEW_INSTANCE_ID
openstack image delete $BUILT_OOD_IMAGE_ID
fi
artifacts
:
reports
:
dotenv
:
instance.env
deploy_review
:
image
:
$CI_REGISTRY_IMAGE:latest
stage
:
deploy
script
:
-
echo "Deploy Review App"
environment
:
name
:
review/$CI_COMMIT_REF_SLUG
url
:
https://$CI_COMMIT_REF_SLUG.$FLOATING_IP.nip.io
on_stop
:
stop_review
tags
:
-
build
rules
:
-
if
:
$CI_MERGE_REQUEST_ID
stop_review
:
image
:
$CI_REGISTRY_IMAGE:latest
stage
:
deploy
script
:
-
openstack server delete $NEW_INSTANCE_ID
-
openstack image delete $BUILT_OOD_IMAGE_ID
-
openstack floating ip delete $FLOATING_IP
environment
:
name
:
review/$CI_COMMIT_REF_SLUG
action
:
stop
rules
:
-
if
:
$CI_MERGE_REQUEST_ID
when
:
manual
deploy_knightly
:
image
:
$CI_REGISTRY_IMAGE:latest
stage
:
deploy
...
...
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