Skip to content
Snippets Groups Projects
Verified Commit 1334ae10 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

ci(docs): Use change based triggers for gitlab-ci

parent f184b36f
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,12 @@ build-docs:
script:
- mdbook build docs -d public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- if: '$FORCE_DOCS_BUILD == true'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
changes:
paths:
- ./docs/**/*
- ./**/README.md
artifacts:
expire_in: 1 week
paths:
......@@ -35,6 +40,11 @@ upload-docs:
script:
- mc cp public gitops-docs
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- if: '$FORCE_DOCS_BUILD == true'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
changes:
paths:
- ./docs/**/*
- ./**/README.md
tags:
- kubernetes
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment