This commit is contained in:
parent
ed38128cca
commit
7ffdf5d836
@ -28,39 +28,54 @@ local PipelineDocumentation = {
|
|||||||
},
|
},
|
||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: 'ansible-doctor',
|
name: 'generate',
|
||||||
image: 'xoxys/ansible-doctor:latest',
|
image: 'xoxys/ansible-doctor:latest',
|
||||||
environment: {
|
environment: {
|
||||||
ANSIBLE_DOCTOR_LOG_LEVEL: 'INFO',
|
ANSIBLE_DOCTOR_LOG_LEVEL: 'INFO',
|
||||||
ANSIBLE_DOCTOR_FORCE_OVERWRITE: true,
|
ANSIBLE_DOCTOR_FORCE_OVERWRITE: true,
|
||||||
ANSIBLE_DOCTOR_EXCLUDE_FILES: 'molecule/',
|
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',
|
name: 'publish',
|
||||||
image: 'plugins/git-action:latest',
|
image: 'plugins/gh-pages:latest',
|
||||||
settings: {
|
settings: {
|
||||||
actions: ['commit', 'push'],
|
remote_url: 'https://gitea.rknet.org/ansible/xoxys.ucs',
|
||||||
author_email: 'shipper@rknet.org',
|
|
||||||
author_name: 'DroneShipper',
|
|
||||||
branch: 'master',
|
|
||||||
message: '[SKIP CI] update readme',
|
|
||||||
netrc_machine: 'gitea.rknet.org',
|
netrc_machine: 'gitea.rknet.org',
|
||||||
netrc_username: { from_secret: 'gitea_username' },
|
username: { from_secret: 'gitea_username' },
|
||||||
netrc_password: { from_secret: 'gitea_token' },
|
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: {
|
when: {
|
||||||
ref: ['refs/heads/master'],
|
ref: ['refs/heads/master'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
depends_on: [
|
|
||||||
'linting',
|
|
||||||
],
|
|
||||||
trigger: {
|
trigger: {
|
||||||
ref: ['refs/heads/master', 'refs/tags/**', 'refs/pull/**'],
|
ref: ['refs/heads/master', 'refs/tags/**', 'refs/pull/**'],
|
||||||
},
|
},
|
||||||
|
depends_on: [
|
||||||
|
'linting',
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
local PipelineNotification = {
|
local PipelineNotification = {
|
||||||
|
39
.drone.yml
39
.drone.yml
@ -27,33 +27,44 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: ansible-doctor
|
- name: generate
|
||||||
image: xoxys/ansible-doctor:latest
|
image: xoxys/ansible-doctor:latest
|
||||||
environment:
|
environment:
|
||||||
ANSIBLE_DOCTOR_CUSTOM_HEADER: HEADER.md
|
|
||||||
ANSIBLE_DOCTOR_EXCLUDE_FILES: molecule/
|
ANSIBLE_DOCTOR_EXCLUDE_FILES: molecule/
|
||||||
ANSIBLE_DOCTOR_FORCE_OVERWRITE: true
|
ANSIBLE_DOCTOR_FORCE_OVERWRITE: true
|
||||||
ANSIBLE_DOCTOR_LOG_LEVEL: INFO
|
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
|
- name: publish
|
||||||
image: plugins/git-action:latest
|
image: plugins/gh-pages:latest
|
||||||
settings:
|
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_machine: gitea.rknet.org
|
||||||
netrc_password:
|
pages_directory: _docs/
|
||||||
|
password:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
netrc_username:
|
remote_url: https://gitea.rknet.org/ansible/xoxys.ucs
|
||||||
|
target_branch: docs
|
||||||
|
username:
|
||||||
from_secret: gitea_username
|
from_secret: gitea_username
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- 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:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
@ -101,6 +112,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 5f97ddffee265287dc73537301223e670c0d20f5109af2db1b4dee67097c979c
|
hmac: 1f872e277fa682e530d0d50af668be7bee913660d09faeb29c389862eff5728b
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user