Remove unused volumes and change volumes base path
This commit is contained in:
parent
ab2de22189
commit
f746f93fcc
|
@ -1,34 +1,16 @@
|
||||||
---
|
---
|
||||||
- name: create drone exchange directory
|
- name: ensure drone exchange path exists
|
||||||
file:
|
file:
|
||||||
path: /var/drone
|
path: /store/drone
|
||||||
state: directory
|
state: directory
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
register: drone_agent_config
|
register: drone_agent_config
|
||||||
|
|
||||||
- name: create exchange path for build artifacts
|
- name: ensure exchange path for build artifacts exists
|
||||||
file:
|
file:
|
||||||
path: /var/builds
|
path: /store/builds
|
||||||
state: directory
|
|
||||||
owner: root
|
|
||||||
group: www-data
|
|
||||||
mode: 0775
|
|
||||||
register: drone_agent_config
|
|
||||||
|
|
||||||
- name: create exchange path for signal build artifacts
|
|
||||||
file:
|
|
||||||
path: /var/builds/signal
|
|
||||||
state: directory
|
|
||||||
owner: root
|
|
||||||
group: www-data
|
|
||||||
mode: 0775
|
|
||||||
register: drone_agent_config
|
|
||||||
|
|
||||||
- name: create exchange path for fenix build artifacts
|
|
||||||
file:
|
|
||||||
path: /var/builds/fenix
|
|
||||||
state: directory
|
state: directory
|
||||||
owner: root
|
owner: root
|
||||||
group: www-data
|
group: www-data
|
||||||
|
|
|
@ -24,8 +24,8 @@
|
||||||
restart_policy: always
|
restart_policy: always
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- /var/drone:/var/drone
|
- /store/drone:/var/drone
|
||||||
- /var/builds:/var/builds
|
- /store/builds:/var/builds
|
||||||
env_file: /etc/drone/drone-agent.env
|
env_file: /etc/drone/drone-agent.env
|
||||||
when: drone_agent_config is defined and drone_agent_config.changed
|
when: drone_agent_config is defined and drone_agent_config.changed
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user