-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/config-disable-auth
- Loading branch information
Showing
402 changed files
with
55,179 additions
and
501 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 |
---|---|---|
|
@@ -110,5 +110,8 @@ ENV/ | |
etc/site.conf | ||
etc/site.d/ | ||
|
||
doc/_build | ||
examples/ssl/clients/.index.bin | ||
|
||
# mkdocs | ||
doc/_build | ||
doc/env |
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,46 @@ | ||
stages: | ||
- deploy | ||
|
||
deploy staging: | ||
stage: deploy | ||
tags: | ||
- docker | ||
image: | ||
name: squidfunk/mkdocs-material | ||
entrypoint: [""] | ||
script: | ||
- apk update && apk add openssh-client rsync | ||
- pip3 install mkdocs-print-site-plugin mkdocs-awesome-pages-plugin mkdocs-glightbox mkdocstrings mkdocstrings[python] mkdocs-git-revision-date-localized-plugin | ||
- mkdir -p ~/.ssh | ||
- echo "$DEPLOY_PRIVATE_KEY" > ~/.ssh/id_rsa | ||
- chmod 600 ~/.ssh/id_rsa | ||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config | ||
- mkdir /output | ||
- mkdocs build --site-dir /output | ||
# For other languages | ||
# - (cd ./cs && mkdocs build --site-dir /output/cs) | ||
- rsync -r -a -v -e ssh --delete /output/ "$RSYNC_USER"@"$TARGET_SERVER":"$STAGING_DIR" | ||
only: | ||
- master | ||
|
||
deploy production: | ||
stage: deploy | ||
tags: | ||
- docker | ||
image: | ||
name: squidfunk/mkdocs-material | ||
entrypoint: [""] | ||
script: | ||
- apk update && apk add openssh-client rsync | ||
- pip3 install mkdocs-print-site-plugin mkdocs-awesome-pages-plugin mkdocs-glightbox mkdocstrings mkdocstrings[python] mkdocs-git-revision-date-localized-plugin | ||
- mkdir -p ~/.ssh | ||
- echo "$DEPLOY_PRIVATE_KEY" > ~/.ssh/id_rsa | ||
- chmod 600 ~/.ssh/id_rsa | ||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config | ||
- mkdir /output | ||
- mkdocs build --site-dir /output | ||
# For other languages | ||
# - (cd ./cs && mkdocs build --site-dir /output/cs) | ||
- rsync -r -a -v -e ssh --delete /output/ "$RSYNC_USER"@"$TARGET_SERVER":"$PRODUCTION_DIR" | ||
only: | ||
- production |
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
Oops, something went wrong.