Skip to content
Snippets Groups Projects
Commit e3906a1c authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Merge branch 'fix_deploy_ci' into 'master'

Only deploy docs if they were built

See merge request eosc/prefactor3-cwl!53

Former-commit-id: e81b681e [formerly b695f3e5]
Former-commit-id: 4d6ffd21
Former-commit-id: 4a5b335a
parents 3c42921d d3d35c19
No related branches found
No related tags found
No related merge requests found
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/*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment