droneci: publish docs on tags only

This commit is contained in:
iwilltry42 2021-09-05 13:17:09 +02:00
parent 2032c26e29
commit c146adf0bb
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110

View File

@ -73,11 +73,14 @@ steps:
- tag - tag
ref: ref:
include: include:
# include only pre-release tags
- "refs/tags/*rc*" - "refs/tags/*rc*"
- "refs/tags/*beta*" - "refs/tags/*beta*"
- "refs/tags/*alpha*" - "refs/tags/*alpha*"
- "refs/tags/*test*" - "refs/tags/*test*"
- "refs/tags/*dev*" - "refs/tags/*dev*"
# exclude docs specific tags
- "refs/tags/*docs*"
- name: release - name: release
image: plugins/github-release image: plugins/github-release
@ -97,11 +100,14 @@ steps:
- tag - tag
ref: ref:
exclude: exclude:
# exclude pre-release tags
- "refs/tags/*rc*" - "refs/tags/*rc*"
- "refs/tags/*beta*" - "refs/tags/*beta*"
- "refs/tags/*alpha*" - "refs/tags/*alpha*"
- "refs/tags/*test*" - "refs/tags/*test*"
- "refs/tags/*dev*" - "refs/tags/*dev*"
# exclude docs specific tags
- "refs/tags/*docs*"
services: services:
# Starting the docker service to be used by dind # Starting the docker service to be used by dind
@ -137,8 +143,6 @@ steps:
- python3 -m pip install -r docs/requirements.txt - python3 -m pip install -r docs/requirements.txt
- mkdocs build --verbose --clean --strict - mkdocs build --verbose --clean --strict
when: when:
branch:
- main
event: event:
- push - push
@ -151,16 +155,21 @@ steps:
pages_directory: site/ pages_directory: site/
target_branch: gh-pages target_branch: gh-pages
when: when:
branch:
- main
event: event:
- push - tag
ref:
exclude:
# exclude tags for pre-releases
- "refs/tags/*rc*"
- "refs/tags/*beta*"
- "refs/tags/*alpha*"
- "refs/tags/*test*"
- "refs/tags/*dev*"
trigger: trigger:
event: event:
- push - push
branch: - tag
- main
--- ---
########################### ###########################
@ -258,6 +267,10 @@ trigger:
event: event:
- tag # see note at the start of the "Docker Images" section: creates SemVer tagged images using the `auto_tag` option of the docker plugin - tag # see note at the start of the "Docker Images" section: creates SemVer tagged images using the `auto_tag` option of the docker plugin
- push # `auto_tag` option only creates the `latest` tag if target branch is default branch (i.e. `main`) - push # `auto_tag` option only creates the `latest` tag if target branch is default branch (i.e. `main`)
ref:
exclude:
# exclude docs specific tags
- "refs/tags/*docs*"
depends_on: depends_on:
- main - main
@ -310,6 +323,10 @@ trigger:
event: event:
- tag # see note at the start of the "Docker Images" section: creates SemVer tagged images using the `auto_tag` option of the docker plugin - tag # see note at the start of the "Docker Images" section: creates SemVer tagged images using the `auto_tag` option of the docker plugin
- push # `auto_tag` option only creates the `latest` tag if target branch is default branch (i.e. `main`) - push # `auto_tag` option only creates the `latest` tag if target branch is default branch (i.e. `main`)
ref:
exclude:
# exclude docs specific tags
- "refs/tags/*docs*"
depends_on: depends_on:
- main - main
@ -399,6 +416,10 @@ trigger:
event: event:
- tag # see note at the start of the "Docker Images" section: creates SemVer tagged images using the `auto_tag` option of the docker plugin - tag # see note at the start of the "Docker Images" section: creates SemVer tagged images using the `auto_tag` option of the docker plugin
- push # `auto_tag` option only creates the `latest` tag if target branch is default branch (i.e. `main`) - push # `auto_tag` option only creates the `latest` tag if target branch is default branch (i.e. `main`)
ref:
exclude:
# exclude docs specific tags
- "refs/tags/*docs*"
depends_on: depends_on:
- main - main
@ -465,6 +486,10 @@ trigger:
event: event:
- tag # see note at the start of the "Docker Images" section: creates SemVer tagged images using the `auto_tag` option of the manifest plugin - tag # see note at the start of the "Docker Images" section: creates SemVer tagged images using the `auto_tag` option of the manifest plugin
- push # `auto_tag` option only creates the `latest` tag if target branch is default branch (i.e. `main`) - push # `auto_tag` option only creates the `latest` tag if target branch is default branch (i.e. `main`)
ref:
exclude:
# exclude docs specific tags
- "refs/tags/*docs*"
depends_on: depends_on:
- main - main