This commit is contained in:
parent
acc88a5f0a
commit
e495692c6e
@ -65,27 +65,42 @@ local PipelineDocumentation = {
|
||||
},
|
||||
steps: [
|
||||
{
|
||||
name: 'ansible-doctor',
|
||||
name: 'generate',
|
||||
image: 'xoxys/ansible-doctor:latest',
|
||||
environment: {
|
||||
ANSIBLE_DOCTOR_LOG_LEVEL: 'INFO',
|
||||
ANSIBLE_DOCTOR_FORCE_OVERWRITE: true,
|
||||
ANSIBLE_DOCTOR_EXCLUDE_FILES: 'molecule/',
|
||||
ANSIBLE_DOCTOR_CUSTOM_HEADER: 'HEADER.md',
|
||||
ANSIBLE_DOCTOR_TEMPLATE: 'hugo-book',
|
||||
ANSIBLE_DOCTOR_ROLE_NAME: '${DRONE_REPO_NAME#*.}',
|
||||
ANSIBLE_DOCTOR_OUTPUT_DIR: '_docs/',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'push-to-repo',
|
||||
image: 'plugins/git-action:latest',
|
||||
name: 'publish',
|
||||
image: 'plugins/gh-pages:latest',
|
||||
settings: {
|
||||
actions: ['commit', 'push'],
|
||||
author_email: 'shipper@rknet.org',
|
||||
author_name: 'DroneShipper',
|
||||
branch: 'master',
|
||||
message: '[SKIP CI] update readme',
|
||||
remote_url: 'https://gitea.rknet.org/ansible/xoxys.matrix',
|
||||
netrc_machine: 'gitea.rknet.org',
|
||||
netrc_username: { from_secret: 'gitea_username' },
|
||||
netrc_password: { from_secret: 'gitea_token' },
|
||||
username: { from_secret: 'gitea_username' },
|
||||
password: { from_secret: 'gitea_token' },
|
||||
pages_directory: '_docs/',
|
||||
target_branch: 'docs',
|
||||
},
|
||||
when: {
|
||||
ref: ['refs/heads/master'],
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'trigger',
|
||||
image: 'plugins/downstream',
|
||||
settings: {
|
||||
server: 'https://drone.rknet.org',
|
||||
token: { from_secret: 'drone_token' },
|
||||
fork: true,
|
||||
repositories: [
|
||||
'ansible/ansible-galaxy',
|
||||
],
|
||||
},
|
||||
when: {
|
||||
ref: ['refs/heads/master'],
|
||||
|
39
.drone.yml
39
.drone.yml
@ -27,33 +27,44 @@ platform:
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: ansible-doctor
|
||||
- name: generate
|
||||
image: xoxys/ansible-doctor:latest
|
||||
environment:
|
||||
ANSIBLE_DOCTOR_CUSTOM_HEADER: HEADER.md
|
||||
ANSIBLE_DOCTOR_EXCLUDE_FILES: molecule/
|
||||
ANSIBLE_DOCTOR_FORCE_OVERWRITE: true
|
||||
ANSIBLE_DOCTOR_LOG_LEVEL: INFO
|
||||
ANSIBLE_DOCTOR_OUTPUT_DIR: _docs/
|
||||
ANSIBLE_DOCTOR_ROLE_NAME: ${DRONE_REPO_NAME#*.}
|
||||
ANSIBLE_DOCTOR_TEMPLATE: hugo-book
|
||||
|
||||
- name: push-to-repo
|
||||
image: plugins/git-action:latest
|
||||
- name: publish
|
||||
image: plugins/gh-pages:latest
|
||||
settings:
|
||||
actions:
|
||||
- commit
|
||||
- push
|
||||
author_email: shipper@rknet.org
|
||||
author_name: DroneShipper
|
||||
branch: master
|
||||
message: "[SKIP CI] update readme"
|
||||
netrc_machine: gitea.rknet.org
|
||||
netrc_password:
|
||||
pages_directory: _docs/
|
||||
password:
|
||||
from_secret: gitea_token
|
||||
netrc_username:
|
||||
remote_url: https://gitea.rknet.org/ansible/xoxys.matrix
|
||||
target_branch: docs
|
||||
username:
|
||||
from_secret: gitea_username
|
||||
when:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
|
||||
- name: trigger
|
||||
image: plugins/downstream
|
||||
settings:
|
||||
fork: true
|
||||
repositories:
|
||||
- ansible/ansible-galaxy
|
||||
server: https://drone.rknet.org
|
||||
token:
|
||||
from_secret: drone_token
|
||||
when:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
@ -98,6 +109,6 @@ depends_on:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 12195a066cda727bc895d6b5f3642dc68a35165f0e1bfa1e3f938136fdbe5c62
|
||||
hmac: 4ca4268f7e44edd762e17d2075c0b2bb354e68e16db8eb85f8798e38b2a6d817
|
||||
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user