forked from wtsi-npg/npg_qc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65fd15e
commit 29f9491
Showing
5 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
stages: | ||
- generate | ||
- publish | ||
|
||
generate-job: | ||
stage: generate | ||
tags: | ||
- autoscale | ||
rules: | ||
- if: $CI_COMMIT_BRANCH == "devel" || $CI_COMMIT_BRANCH == "master" | ||
changes: | ||
- docs/**/* | ||
variables: | ||
REPO_METADATA_FILE: docs/includes/repo-metadata.md | ||
script: > | ||
echo "Created from: [$CI_PROJECT_NAMESPACE / $CI_PROJECT_TITLE]($CI_PROJECT_URL) Version: $(git describe --always)" > "$REPO_METADATA_FILE" | ||
artifacts: | ||
paths: | ||
- "$REPO_METADATA_FILE" | ||
|
||
mark-job: | ||
stage: publish | ||
rules: | ||
- if: $CI_COMMIT_BRANCH == "devel" || $CI_COMMIT_BRANCH == "master" | ||
changes: | ||
- docs/**/* | ||
image: wsinpg/mark:latest | ||
tags: | ||
- autoscale | ||
script: > | ||
for f in $(find . -name includes -type d -prune -o -name 'README*.md' -prune -o -name '*.md' -print0 | xargs -0); do | ||
echo 'username = ""' && echo "password = '$CONFLUENCE_PERSONAL_ACCESS_TOKEN'" | | ||
mark -c /dev/stdin -b https://ssg-confluence.internal.sanger.ac.uk -f "$f" --trace | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Created from: - Version: - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters