Skip to content
Snippets Groups Projects
Verified Commit bb3fd1cc authored by David Hoese's avatar David Hoese
Browse files

Define CI stages

parent be7fdeb8
No related branches found
No related tags found
1 merge request!10Switch to GitLab CI for automated building
Pipeline #9539 passed
stages:
- build
- deploy
basic_build_check:
stage: build
tags:
- development
script:
......@@ -13,29 +18,23 @@ basic_build_check:
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
when: always
build_upload_metobs_test_site:
upload_metobs_test_site:
stage: deploy
tags:
- workstation
- development
script:
- source /var/lib/gitlab-runner/.bashrc
- conda activate rain_site
- make clean
- make publish
- chmod 600 "$METOBS_UPLOAD_TEST"
- rsync --delete -auv -e "ssh -T -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o ForwardAgent=no -F /dev/null -i $METOBS_UPLOAD_TEST" output/ davidh@webaccess:METOBS_TEST
rules:
- if: '$CI_COMMIT_BRANCH == "develop"'
when: always
build_upload_metobs_prod_site:
upload_metobs_prod_site:
stage: deploy
tags:
- production
script:
- source /var/lib/gitlab-runner/.bashrc
- conda activate rain_site
- make clean
- make publish
- chmod 600 "$METOBS_UPLOAD_PROD"
- rsync --delete -auv -e "ssh -T -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o ForwardAgent=no -F /dev/null -i $METOBS_UPLOAD_PROD" output/ davidh@webaccess:METOBS_PROD
rules:
......
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