[Fix] Fix post-merge doc publish job
- Add secret attachment to the job Change-Id: I21b7e83abc3a457e88e888be3609bb78cec23cb2
This commit is contained in:
parent
5ee84cc622
commit
e594ca7935
|
@ -102,11 +102,13 @@
|
|||
description: |
|
||||
Publish documentation on airship-drydock.readthedocs.io
|
||||
run: tools/gate/playbooks/doc-publish.yaml
|
||||
secrets:
|
||||
- airship_drydock_readthedocs
|
||||
timeout: 300
|
||||
nodeset: airship-drydock-single-node
|
||||
|
||||
- secret:
|
||||
name: readthedocs
|
||||
name: airship_drydock_readthedocs
|
||||
data:
|
||||
url: !encrypted/pkcs1-oaep
|
||||
- dcOaNb6+3zCSp8rlmaA8U/v8kxzsB9MPqmbfbFSoyCsXOAMvluYSitmF7XpYdZLOXPOvm
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
|
||||
- hosts: primary
|
||||
tasks:
|
||||
- name: Publish current merged documents on readthedocs.org
|
||||
- name: Publish current merged documents on readthedocs
|
||||
shell: |
|
||||
curl -X POST -d "token={{ readthedocs.token }}" "{{ readthedocs.url }}"
|
||||
curl -X POST -d "token={{ airship_drydock_readthedocs.token }}" "{{ airship_drydock_readthedocs.url }}"
|
||||
register: result
|
||||
failed_when: result.failed
|
||||
|
|
Loading…
Reference in New Issue