Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpc-factory
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
2
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
hpc-factory
Commits
e920950b
Commit
e920950b
authored
8 months ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
feat: only run deploy jobs when image id present
parent
53bc639c
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
Change compute reference to login
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+2
-6
2 additions, 6 deletions
.gitlab-ci.yml
with
2 additions
and
6 deletions
.gitlab-ci.yml
+
2
−
6
View file @
e920950b
...
@@ -64,9 +64,7 @@ deploy_http_proxy_node:
...
@@ -64,9 +64,7 @@ deploy_http_proxy_node:
openstack server add floating ip $HTTP_PROXY_INSTANCE_ID $HTTP_PROXY_FLOATING_IP
openstack server add floating ip $HTTP_PROXY_INSTANCE_ID $HTTP_PROXY_FLOATING_IP
echo "Associated FLOATING_IP $HTTP_PROXY_FLOATING_IP with HTTP_PROXY_INSTANCE_ID $HTTP_PROXY_INSTANCE_ID"
echo "Associated FLOATING_IP $HTTP_PROXY_FLOATING_IP with HTTP_PROXY_INSTANCE_ID $HTTP_PROXY_INSTANCE_ID"
rules
:
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
-
if
:
$PIPELINE_TARGET == "deploy" && $HTTP_PROXY_IMAGE_ID
when
:
always
-
if
:
$CI_PIPELINE_SOURCE == "web"
when
:
always
when
:
always
deploy_ssh_proxy_node
:
deploy_ssh_proxy_node
:
...
@@ -101,7 +99,5 @@ deploy_ssh_proxy_node:
...
@@ -101,7 +99,5 @@ deploy_ssh_proxy_node:
openstack server add floating ip $SSH_PROXY_INSTANCE_ID $SSH_PROXY_FLOATING_IP
openstack server add floating ip $SSH_PROXY_INSTANCE_ID $SSH_PROXY_FLOATING_IP
echo "Associated FLOATING_IP $SSH_PROXY_FLOATING_IP with SSH_PROXY_INSTANCE_ID $SSH_PROXY_INSTANCE_ID"
echo "Associated FLOATING_IP $SSH_PROXY_FLOATING_IP with SSH_PROXY_INSTANCE_ID $SSH_PROXY_INSTANCE_ID"
rules
:
rules
:
-
if
:
$
CI_
PIPELINE_
SOURCE == "schedule"
-
if
:
$PIPELINE_
TARGET == "deploy" && $SSH_PROXY_IMAGE_ID
when
:
always
when
:
always
-
if
:
$CI_PIPELINE_SOURCE == "web"
when
:
always
\ No newline at end of file
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