feat: update sqlite folder
This commit is contained in:
parent
14f0df0dfe
commit
0e42b32a1a
|
@ -1,4 +1,3 @@
|
||||||
---
|
|
||||||
drone_server_enable: "false"
|
drone_server_enable: "false"
|
||||||
drone_agent_enable: "false"
|
drone_agent_enable: "false"
|
||||||
drone_version: "latest"
|
drone_version: "latest"
|
||||||
|
@ -12,7 +11,8 @@ drone_github_client_id: ""
|
||||||
drone_github_client_secret: ""
|
drone_github_client_secret: ""
|
||||||
drone_logs_pretty: "true"
|
drone_logs_pretty: "true"
|
||||||
drone_logs_color: "true"
|
drone_logs_color: "true"
|
||||||
drone_dir: "/var/lib/drone"
|
|
||||||
drone_rpc_server: "http://drone-server"
|
drone_rpc_server: "http://drone-server"
|
||||||
drone_runner_capacity: "3"
|
drone_runner_capacity: "3"
|
||||||
drone_host_port: "8080"
|
drone_host_port: "8080"
|
||||||
|
drone_database_driver: "sqlite"
|
||||||
|
drone_sqlite_dir: "/var/lib/drone"
|
||||||
|
|
|
@ -9,11 +9,11 @@
|
||||||
|
|
||||||
- name: Creates sqlite directory
|
- name: Creates sqlite directory
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ drone_sqlite_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
with_items:
|
when: drone_database_driver == "sqlite"
|
||||||
- "{{ drone_dir }}"
|
register: drone_sqlite_folder
|
||||||
tags:
|
tags:
|
||||||
- drone-server
|
- drone-server
|
||||||
|
|
||||||
|
@ -26,8 +26,9 @@
|
||||||
ports:
|
ports:
|
||||||
- "{{ drone_host_port }}:80"
|
- "{{ drone_host_port }}:80"
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ drone_dir }}:/data"
|
- "{{ drone_sqlite_dir }}:/data"
|
||||||
env_file: /etc/drone/drone-server.env
|
env_file: /etc/drone/drone-server.env
|
||||||
when: drone_server_config is defined and drone_server_config.changed
|
when: (drone_server_config is defined and drone_server_config.changed) or
|
||||||
|
(drone_sqlite_folder is defined and drone_sqlite_folder.changed)
|
||||||
tags:
|
tags:
|
||||||
- drone-server
|
- drone-server
|
||||||
|
|
Loading…
Reference in New Issue
Block a user