mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-22 04:40:42 +00:00
deploy docs page
This commit is contained in:
parent
f6021e9904
commit
57bfa64bd0
@ -232,6 +232,83 @@ local PipelineBuildContainer(arch="amd64") = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
local PipelineDocs = {
|
||||||
|
kind: "pipeline",
|
||||||
|
name: "docs",
|
||||||
|
platform: {
|
||||||
|
os: "linux",
|
||||||
|
arch: "amd64",
|
||||||
|
},
|
||||||
|
concurrency: {
|
||||||
|
limit: 1
|
||||||
|
},
|
||||||
|
steps: [
|
||||||
|
{
|
||||||
|
name: "assets",
|
||||||
|
image: "byrnedo/alpine-curl",
|
||||||
|
commands: [
|
||||||
|
"mkdir -p docs/themes/hugo-geekdoc/",
|
||||||
|
"curl -L https://github.com/xoxys/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C docs/themes/hugo-geekdoc/ --strip-components=1",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "test",
|
||||||
|
image: "klakegg/hugo:0.59.1-ext-alpine",
|
||||||
|
commands: [
|
||||||
|
"cd docs/ && hugo-official",
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "freeze",
|
||||||
|
image: "appleboy/drone-ssh",
|
||||||
|
settings: {
|
||||||
|
host: { from_secret: "ssh_host" },
|
||||||
|
key: { from_secret: "ssh_key" },
|
||||||
|
script: [
|
||||||
|
"cp -R /var/www/virtual/geeklab/html/ansible-later.geekdocs.de/ /var/www/virtual/geeklab/html/ansiblelater_freeze/",
|
||||||
|
"ln -sfn /var/www/virtual/geeklab/html/ansiblelater_freeze /var/www/virtual/geeklab/ansible-later.geekdocs.de",
|
||||||
|
],
|
||||||
|
username: { from_secret: "ssh_username" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "publish",
|
||||||
|
image: "appleboy/drone-scp",
|
||||||
|
settings: {
|
||||||
|
host: { from_secret: "ssh_host" },
|
||||||
|
key: { from_secret: "ssh_key" },
|
||||||
|
rm: true,
|
||||||
|
source: "docs/public/*",
|
||||||
|
strip_components: 2,
|
||||||
|
target: "/var/www/virtual/geeklab/html/ansible-later.geekdocs.de/",
|
||||||
|
username: { from_secret: "ssh_username" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "cleanup",
|
||||||
|
image: "appleboy/drone-ssh",
|
||||||
|
settings: {
|
||||||
|
host: { from_secret: "ssh_host" },
|
||||||
|
key: { from_secret: "ssh_key" },
|
||||||
|
script: [
|
||||||
|
"ln -sfn /var/www/virtual/geeklab/html/ansible-later.geekdocs.de /var/www/virtual/geeklab/ansible-later.geekdocs.de",
|
||||||
|
"rm -rf /var/www/virtual/geeklab/html/ansiblelater_freeze/",
|
||||||
|
],
|
||||||
|
username: { from_secret: "ssh_username" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
depends_on: [
|
||||||
|
"build-package",
|
||||||
|
"build-container-amd64",
|
||||||
|
"build-container-arm64",
|
||||||
|
"build-container-arm",
|
||||||
|
],
|
||||||
|
trigger: {
|
||||||
|
ref: ["refs/heads/master", "refs/tags/**"],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
local PipelineNotifications = {
|
local PipelineNotifications = {
|
||||||
kind: "pipeline",
|
kind: "pipeline",
|
||||||
name: "notifications",
|
name: "notifications",
|
||||||
@ -301,10 +378,7 @@ local PipelineNotifications = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
depends_on: [
|
depends_on: [
|
||||||
"build-package",
|
"docs"
|
||||||
"build-container-amd64",
|
|
||||||
"build-container-arm64",
|
|
||||||
"build-container-arm"
|
|
||||||
],
|
],
|
||||||
trigger: {
|
trigger: {
|
||||||
ref: ["refs/heads/master", "refs/tags/**"],
|
ref: ["refs/heads/master", "refs/tags/**"],
|
||||||
@ -320,5 +394,6 @@ local PipelineNotifications = {
|
|||||||
PipelineBuildContainer(arch="amd64"),
|
PipelineBuildContainer(arch="amd64"),
|
||||||
PipelineBuildContainer(arch="arm64"),
|
PipelineBuildContainer(arch="arm64"),
|
||||||
PipelineBuildContainer(arch="arm"),
|
PipelineBuildContainer(arch="arm"),
|
||||||
|
PipelineDocs,
|
||||||
PipelineNotifications,
|
PipelineNotifications,
|
||||||
]
|
]
|
||||||
|
149
.drone.yml
149
.drone.yml
@ -20,8 +20,8 @@ steps:
|
|||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
- "refs/tags/**"
|
- refs/tags/**
|
||||||
- "refs/pull/**"
|
- refs/pull/**
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -37,7 +37,7 @@ steps:
|
|||||||
image: python:2.7
|
image: python:2.7
|
||||||
commands:
|
commands:
|
||||||
- pip install tox -qq
|
- pip install tox -qq
|
||||||
- "tox -e $(tox -l | grep py27 | xargs | sed 's/ /,/g') -q"
|
- tox -e $(tox -l | grep py27 | xargs | sed 's/ /,/g') -q
|
||||||
environment:
|
environment:
|
||||||
PY_COLORS: 1
|
PY_COLORS: 1
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -48,7 +48,7 @@ steps:
|
|||||||
image: python:3.5
|
image: python:3.5
|
||||||
commands:
|
commands:
|
||||||
- pip install tox -qq
|
- pip install tox -qq
|
||||||
- "tox -e $(tox -l | grep py35 | xargs | sed 's/ /,/g') -q"
|
- tox -e $(tox -l | grep py35 | xargs | sed 's/ /,/g') -q
|
||||||
environment:
|
environment:
|
||||||
PY_COLORS: 1
|
PY_COLORS: 1
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -59,7 +59,7 @@ steps:
|
|||||||
image: python:3.6
|
image: python:3.6
|
||||||
commands:
|
commands:
|
||||||
- pip install tox -qq
|
- pip install tox -qq
|
||||||
- "tox -e $(tox -l | grep py36 | xargs | sed 's/ /,/g') -q"
|
- tox -e $(tox -l | grep py36 | xargs | sed 's/ /,/g') -q
|
||||||
environment:
|
environment:
|
||||||
PY_COLORS: 1
|
PY_COLORS: 1
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -70,7 +70,7 @@ steps:
|
|||||||
image: python:3.7
|
image: python:3.7
|
||||||
commands:
|
commands:
|
||||||
- pip install tox -qq
|
- pip install tox -qq
|
||||||
- "tox -e $(tox -l | grep py37 | xargs | sed 's/ /,/g') -q"
|
- tox -e $(tox -l | grep py37 | xargs | sed 's/ /,/g') -q
|
||||||
environment:
|
environment:
|
||||||
PY_COLORS: 1
|
PY_COLORS: 1
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -81,7 +81,7 @@ steps:
|
|||||||
image: python:3.8-rc
|
image: python:3.8-rc
|
||||||
commands:
|
commands:
|
||||||
- pip install tox -qq
|
- pip install tox -qq
|
||||||
- "tox -e $(tox -l | grep py38-rc | xargs | sed 's/ /,/g') -q"
|
- tox -e $(tox -l | grep py38-rc | xargs | sed 's/ /,/g') -q
|
||||||
environment:
|
environment:
|
||||||
PY_COLORS: 1
|
PY_COLORS: 1
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -92,7 +92,7 @@ steps:
|
|||||||
image: python:3.7
|
image: python:3.7
|
||||||
commands:
|
commands:
|
||||||
- pip install codecov
|
- pip install codecov
|
||||||
- "coverage combine .tox/py*/.coverage"
|
- coverage combine .tox/py*/.coverage
|
||||||
- codecov --required
|
- codecov --required
|
||||||
environment:
|
environment:
|
||||||
CODECOV_TOKEN:
|
CODECOV_TOKEN:
|
||||||
@ -108,8 +108,8 @@ steps:
|
|||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
- "refs/tags/**"
|
- refs/tags/**
|
||||||
- "refs/pull/**"
|
- refs/pull/**
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- lint
|
- lint
|
||||||
@ -136,8 +136,8 @@ steps:
|
|||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
- "refs/tags/**"
|
- refs/tags/**
|
||||||
- "refs/pull/**"
|
- refs/pull/**
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- test
|
- test
|
||||||
@ -161,7 +161,7 @@ steps:
|
|||||||
pull: always
|
pull: always
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- "cd dist/ && sha256sum * > ../sha256sum.txt"
|
- cd dist/ && sha256sum * > ../sha256sum.txt
|
||||||
|
|
||||||
- name: publish-github
|
- name: publish-github
|
||||||
pull: always
|
pull: always
|
||||||
@ -170,14 +170,14 @@ steps:
|
|||||||
api_key:
|
api_key:
|
||||||
from_secret: github_token
|
from_secret: github_token
|
||||||
files:
|
files:
|
||||||
- "dist/*"
|
- dist/*
|
||||||
- sha256sum.txt
|
- sha256sum.txt
|
||||||
note: CHANGELOG.md
|
note: CHANGELOG.md
|
||||||
overwrite: true
|
overwrite: true
|
||||||
title: "${DRONE_TAG}"
|
title: ${DRONE_TAG}
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- "refs/tags/**"
|
- refs/tags/**
|
||||||
|
|
||||||
- name: publish-pypi
|
- name: publish-pypi
|
||||||
pull: always
|
pull: always
|
||||||
@ -191,13 +191,13 @@ steps:
|
|||||||
from_secret: pypi_username
|
from_secret: pypi_username
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- "refs/tags/**"
|
- refs/tags/**
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
- "refs/tags/**"
|
- refs/tags/**
|
||||||
- "refs/pull/**"
|
- refs/pull/**
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- security
|
- security
|
||||||
@ -230,7 +230,7 @@ steps:
|
|||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- "refs/pull/**"
|
- refs/pull/**
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
pull: always
|
pull: always
|
||||||
@ -247,13 +247,13 @@ steps:
|
|||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
- "refs/tags/**"
|
- refs/tags/**
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
- "refs/tags/**"
|
- refs/tags/**
|
||||||
- "refs/pull/**"
|
- refs/pull/**
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- security
|
- security
|
||||||
@ -286,7 +286,7 @@ steps:
|
|||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- "refs/pull/**"
|
- refs/pull/**
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
pull: always
|
pull: always
|
||||||
@ -303,13 +303,13 @@ steps:
|
|||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
- "refs/tags/**"
|
- refs/tags/**
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
- "refs/tags/**"
|
- refs/tags/**
|
||||||
- "refs/pull/**"
|
- refs/pull/**
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- security
|
- security
|
||||||
@ -342,7 +342,7 @@ steps:
|
|||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- "refs/pull/**"
|
- refs/pull/**
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
pull: always
|
pull: always
|
||||||
@ -359,17 +359,91 @@ steps:
|
|||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
- "refs/tags/**"
|
- refs/tags/**
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
- "refs/tags/**"
|
- refs/tags/**
|
||||||
- "refs/pull/**"
|
- refs/pull/**
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- security
|
- security
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: docs
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
limit: 1
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: assets
|
||||||
|
image: byrnedo/alpine-curl
|
||||||
|
commands:
|
||||||
|
- mkdir -p docs/themes/hugo-geekdoc/
|
||||||
|
- curl -L https://github.com/xoxys/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C docs/themes/hugo-geekdoc/ --strip-components=1
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
image: klakegg/hugo:0.59.1-ext-alpine
|
||||||
|
commands:
|
||||||
|
- cd docs/ && hugo-official
|
||||||
|
|
||||||
|
- name: freeze
|
||||||
|
image: appleboy/drone-ssh
|
||||||
|
settings:
|
||||||
|
host:
|
||||||
|
from_secret: ssh_host
|
||||||
|
key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
script:
|
||||||
|
- cp -R /var/www/virtual/geeklab/html/ansible-later.geekdocs.de/ /var/www/virtual/geeklab/html/ansiblelater_freeze/
|
||||||
|
- ln -sfn /var/www/virtual/geeklab/html/ansiblelater_freeze /var/www/virtual/geeklab/ansible-later.geekdocs.de
|
||||||
|
username:
|
||||||
|
from_secret: ssh_username
|
||||||
|
|
||||||
|
- name: publish
|
||||||
|
image: appleboy/drone-scp
|
||||||
|
settings:
|
||||||
|
host:
|
||||||
|
from_secret: ssh_host
|
||||||
|
key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
rm: true
|
||||||
|
source: docs/public/*
|
||||||
|
strip_components: 2
|
||||||
|
target: /var/www/virtual/geeklab/html/ansible-later.geekdocs.de/
|
||||||
|
username:
|
||||||
|
from_secret: ssh_username
|
||||||
|
|
||||||
|
- name: cleanup
|
||||||
|
image: appleboy/drone-ssh
|
||||||
|
settings:
|
||||||
|
host:
|
||||||
|
from_secret: ssh_host
|
||||||
|
key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
script:
|
||||||
|
- ln -sfn /var/www/virtual/geeklab/html/ansible-later.geekdocs.de /var/www/virtual/geeklab/ansible-later.geekdocs.de
|
||||||
|
- rm -rf /var/www/virtual/geeklab/html/ansiblelater_freeze/
|
||||||
|
username:
|
||||||
|
from_secret: ssh_username
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
ref:
|
||||||
|
- refs/heads/master
|
||||||
|
- refs/tags/**
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- build-package
|
||||||
|
- build-container-amd64
|
||||||
|
- build-container-arm64
|
||||||
|
- build-container-arm
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: notifications
|
name: notifications
|
||||||
@ -393,7 +467,7 @@ steps:
|
|||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
- "refs/tags/**"
|
- refs/tags/**
|
||||||
|
|
||||||
- name: readme
|
- name: readme
|
||||||
pull: always
|
pull: always
|
||||||
@ -410,7 +484,7 @@ steps:
|
|||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
- "refs/tags/**"
|
- refs/tags/**
|
||||||
|
|
||||||
- name: microbadger
|
- name: microbadger
|
||||||
pull: always
|
pull: always
|
||||||
@ -439,19 +513,16 @@ steps:
|
|||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
- "refs/tags/**"
|
- refs/tags/**
|
||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build-package
|
- docs
|
||||||
- build-container-amd64
|
|
||||||
- build-container-arm64
|
|
||||||
- build-container-arm
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 825a77f8fb6f029b87bf463a2f2d670a8d0297f3cf17684787188362eba6a336
|
hmac: 225363c3eddd299c7a3bdf2e54a2007e5ebc7e3881dd1aa0325e9f9ea7b2bc3b
|
||||||
|
|
||||||
...
|
...
|
||||||
|
6
.gitignore
vendored
6
.gitignore
vendored
@ -101,3 +101,9 @@ env*/
|
|||||||
.pytest_cache
|
.pytest_cache
|
||||||
|
|
||||||
pip-wheel-metadata
|
pip-wheel-metadata
|
||||||
|
|
||||||
|
# Hugo documentation
|
||||||
|
docs/themes/
|
||||||
|
docs/public/
|
||||||
|
resources/_gen/
|
||||||
|
|
||||||
|
1
docs
Submodule
1
docs
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit b9269e6f5b1f5bcd3da3522c6c2e61f05ad0eebb
|
Loading…
Reference in New Issue
Block a user