Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MetObsSite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
MetObs
MetObsSite
Commits
be7fdeb8
Verified
Commit
be7fdeb8
authored
5 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Switch to rules basic filtering on CI
parent
4eecafa7
No related branches found
No related tags found
1 merge request
!10
Switch to GitLab CI for automated building
Pipeline
#9535
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+26
-10
26 additions, 10 deletions
.gitlab-ci.yml
with
26 additions
and
10 deletions
.gitlab-ci.yml
+
26
−
10
View file @
be7fdeb8
build_metobs_test_site
:
basic_build_check
:
tags
:
-
development
script
:
-
source /var/lib/gitlab-runner/.bashrc
-
conda activate rain_site
-
make clean
-
make publish
-
echo $PWD
rules
:
-
if
:
'
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
==
"develop"'
when
:
always
-
if
:
'
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
==
"master"'
when
:
always
build_upload_metobs_test_site
:
tags
:
-
workstation
-
development
...
...
@@ -8,13 +23,13 @@ build_metobs_test_site:
-
make clean
-
make publish
-
chmod 600 "$METOBS_UPLOAD_TEST"
-
rsync --delete -auv -e "ssh -vvv -T -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o ForwardAgent=no -F /dev/null -i $METOBS_UPLOAD_TEST" output/ davidh@webaccess:METOBS_TEST
only
:
-
develop
-
feature-automated-build
build_metobs_prod_site
:
-
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
:
tags
:
-
workstation
-
production
script
:
-
source /var/lib/gitlab-runner/.bashrc
...
...
@@ -22,6 +37,7 @@ build_metobs_prod_site:
-
make clean
-
make publish
-
chmod 600 "$METOBS_UPLOAD_PROD"
-
rsync --delete -auv -e "ssh -T -o IdentitiesOnly=yes -o ForwardAgent=no -F /dev/null -i $METOBS_UPLOAD_PROD" output/ davidh@webaccess:METOBS_PROD
only
:
-
master
-
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
:
-
if
:
'
$CI_COMMIT_BRANCH
==
"master"'
when
:
always
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