add admin user
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
vincent 2021-07-10 20:59:41 +02:00
parent cedf74c4b6
commit 3e8716c8d8
3 changed files with 11 additions and 13 deletions

View File

@ -8,7 +8,7 @@ drone_gitea_always_auth: TRUE
drone_RPC_secret: secret drone_RPC_secret: secret
drone_server_host: toto:80 drone_server_host: toto:80
drone_server_proto: http drone_server_proto: http
drone_user: admin
drone_db_external: FALSE drone_db_external: FALSE
drone_db_host: 127.0.0.1:5432 drone_db_host: 127.0.0.1:5432
drone_db_name: drone drone_db_name: drone

View File

@ -19,10 +19,9 @@
state: started state: started
env_file: "{{drone_env_file_path}}" env_file: "{{drone_env_file_path}}"
restart: yes restart: yes
restart_policy: 'unless-stopped' restart_policy: "unless-stopped"
published_ports: "{{ drone_port }}" published_ports: "{{ drone_port }}"
- name: create drone docker runner container - name: create drone docker runner container
docker_container: docker_container:
name: "{{ drone_runner_container_name }}" name: "{{ drone_runner_container_name }}"
@ -30,6 +29,5 @@
state: started state: started
env_file: "{{drone_env_file_path}}" env_file: "{{drone_env_file_path}}"
restart: yes restart: yes
restart_policy: 'unless-stopped' restart_policy: "unless-stopped"
volumes: "{{ drone_docker_socket }}:/var/run/docker.sock" volumes: "{{ drone_docker_socket }}:/var/run/docker.sock"

View File

@ -11,4 +11,4 @@ DRONE_SERVER_PROTO={{drone_server_proto}}
DRONE_DATABASE_DRIVER=postgres DRONE_DATABASE_DRIVER=postgres
DRONE_DATABASE_DATASOURCE=postgres://{{drone_db_user}}:{{drone_db_password|urlencode()}}@{{drone_db_host}}/{{drone_db_name}}?sslmode=disable DRONE_DATABASE_DATASOURCE=postgres://{{drone_db_user}}:{{drone_db_password|urlencode()}}@{{drone_db_host}}/{{drone_db_name}}?sslmode=disable
{% endif%} {% endif%}
DRONE_USER_CREATE=username:{{drone_user}},admin:true