[Fix] Fix post-merge doc publish job

- Add secret attachment to the job

Change-Id: I21b7e83abc3a457e88e888be3609bb78cec23cb2
This commit is contained in:
Scott Hussey 2018-05-30 15:40:35 -05:00
parent 5ee84cc622
commit e594ca7935
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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