cleanup drone config
This commit is contained in:
parent
6ede26e376
commit
f31addde5f
@ -31,13 +31,12 @@ local PipelineDeployment(scenario='centos7') = {
|
||||
},
|
||||
workspace: {
|
||||
base: '/drone/src',
|
||||
path: 'xoxys.zigbee2mqtt',
|
||||
path: '${DRONE_REPO_NAME}',
|
||||
},
|
||||
steps: [
|
||||
{
|
||||
name: 'ansible-molecule',
|
||||
image: 'xoxys/molecule:3',
|
||||
pull: 'always',
|
||||
environment: {
|
||||
DO_API_KEY: { from_secret: 'do_api_key' },
|
||||
MOLECULE_CUSTOM_MODULES_REPO: 'https://gitea.rknet.org/ansible/custom_modules',
|
||||
@ -80,7 +79,7 @@ local PipelineDocumentation = {
|
||||
name: 'publish',
|
||||
image: 'plugins/gh-pages',
|
||||
settings: {
|
||||
remote_url: 'https://gitea.rknet.org/ansible/xoxys.zigbee2mqtt',
|
||||
remote_url: 'https://gitea.rknet.org/ansible/${DRONE_REPO_NAME}',
|
||||
netrc_machine: 'gitea.rknet.org',
|
||||
username: { from_secret: 'gitea_username' },
|
||||
password: { from_secret: 'gitea_token' },
|
||||
|
@ -31,7 +31,7 @@ concurrency:
|
||||
|
||||
workspace:
|
||||
base: /drone/src
|
||||
path: xoxys.zigbee2mqtt
|
||||
path: ${DRONE_REPO_NAME}
|
||||
|
||||
steps:
|
||||
- name: ansible-molecule
|
||||
@ -78,7 +78,7 @@ steps:
|
||||
pages_directory: _docs/
|
||||
password:
|
||||
from_secret: gitea_token
|
||||
remote_url: https://gitea.rknet.org/ansible/xoxys.zigbee2mqtt
|
||||
remote_url: https://gitea.rknet.org/ansible/${DRONE_REPO_NAME}
|
||||
target_branch: docs
|
||||
username:
|
||||
from_secret: gitea_username
|
||||
@ -146,6 +146,6 @@ depends_on:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: b629e99dc2598189aa6098a35cca02a35713d411d585266f29aa0160ba3501b1
|
||||
hmac: 3dcde97a565209f6740ba11221bc41f96334425e47bb9ed6f89cc63048e2ab50
|
||||
|
||||
...
|
||||
|
@ -30,8 +30,7 @@
|
||||
|
||||
- name: Install nodejs dependencies
|
||||
npm:
|
||||
path: "{{ zigbee2mqtt_base_dir }}"
|
||||
environment:
|
||||
path: "{{ zigbee2mqtt_base_dir }}" environment:
|
||||
PATH: "{{ __zigbee2mqtt_npm_executable | dirname }}:{{ ansible_env.PATH }}"
|
||||
notify: __zigbee2mqtt_restart
|
||||
when: zigbee2mqtt_version is version(zigbee2mqtt_current_version, ">")
|
||||
|
Loading…
Reference in New Issue
Block a user