Skip to content

Commit

Permalink
ci: transition from gitlab only syntax to new if syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Sieboldianus committed May 12, 2020
1 parent a1d3e00 commit fd9c011
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@ test:
- '*.svg'
- docs/argparse/args.md
- docs/api/
only:
- master
- ci-test

rules:
# always execute on master or ci-test
- if:
$CI_COMMIT_BRANCH == "master" ||
$CI_COMMIT_BRANCH == "ci-test"

mkdocs:
stage: mkdocs
image: registry.gitlab.vgiscience.org/tud_ifk/alpine-mkdocs
Expand All @@ -73,9 +75,11 @@ mkdocs:
name: pages
paths:
- public
only:
- master
- ci-test
rules:
# always execute on master or ci-test
- if:
$CI_COMMIT_BRANCH == "master" ||
$CI_COMMIT_BRANCH == "ci-test"

rsync:
stage: deploy
Expand All @@ -88,5 +92,6 @@ rsync:
script:
- ssh "${STAGING_SERVER}" mkdir -p "${STAGING_PATH}${REL_NAMESPACE}"
- rsync -avu -zz --no-perms --omit-dir-times --del --chown=www-data:www-data --chmod=D775,F664 "public/${REL_NAMESPACE}" "${STAGING_SERVER}:${STAGING_PATH}${REL_NAMESPACE}"
only:
- master
rules:
# always execute on master or ci-test
- if: $CI_COMMIT_BRANCH == "master"

0 comments on commit fd9c011

Please sign in to comment.