Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LINC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
Frits Sweijen
LINC
Commits
634d6ea1
Commit
634d6ea1
authored
3 years ago
by
Tammo Jan Dijkema
Committed by
Marcel Loose
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Only deploy docs if they were built
parent
62bf934a
No related branches found
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
+15
-0
15 additions, 0 deletions
.gitlab-ci.yml
with
15 additions
and
0 deletions
.gitlab-ci.yml
+
15
−
0
View file @
634d6ea1
image
:
lofareosc/prefactor3-cwl:latest
image
:
lofareosc/prefactor3-cwl:latest
workflow
:
rules
:
# don't create a pipeline if its a commit pipeline, on a branch and that branch has open merge requests.
-
if
:
$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when
:
never
-
when
:
always
variables
:
variables
:
TEST_HBA_DATASET_NAME
:
"
test_data.tar.gz"
TEST_HBA_DATASET_NAME
:
"
test_data.tar.gz"
CALIBRATOR_HBA_RESULTS_NAME
:
"
results_calibrator.tar.gz"
CALIBRATOR_HBA_RESULTS_NAME
:
"
results_calibrator.tar.gz"
...
@@ -88,6 +95,8 @@ build-doc:
...
@@ -88,6 +95,8 @@ build-doc:
# Only add job for commits to master or on merge request events
# Only add job for commits to master or on merge request events
-
if
:
'
$CI_COMMIT_BRANCH
==
"master"
&&
$CI_PIPELINE_SOURCE
!=
"schedule"'
-
if
:
'
$CI_COMMIT_BRANCH
==
"master"
&&
$CI_PIPELINE_SOURCE
!=
"schedule"'
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
-
changes
:
-
docs/*
deploy-doc
:
deploy-doc
:
stage
:
deploy
stage
:
deploy
...
@@ -101,3 +110,9 @@ deploy-doc:
...
@@ -101,3 +110,9 @@ deploy-doc:
-
ssh-keyscan -H dop810 > ~/.ssh/known_hosts
-
ssh-keyscan -H dop810 > ~/.ssh/known_hosts
script
:
script
:
-
scp -r docs/build/html/* citt@dop810:prefactor
-
scp -r docs/build/html/* citt@dop810:prefactor
rules
:
# Only run on master
-
if
:
'
$CI_COMMIT_BRANCH
!=
"master"'
when
:
never
-
changes
:
-
docs/*
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