Merge pull request #633 from anarion80/fix_drone_ci_tests

Fix drone ci tests
This commit is contained in:
David Stephens 2023-04-09 21:36:24 +01:00 committed by GitHub
commit 931cd46437
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,8 @@
---
- name: Restart gitea
community.docker.docker_container:
name: gitea
image: gitea/gitea:latest
state: started
restart: true
listen: "restart gitea"

View file

@ -8,3 +8,6 @@ provisioner:
drone_ci_gitea_client_secret: asdfasd12341234
gitea_port_http: 3001
ansible_nas_hostname: ansible-nas-ci
gitea_data_directory: "/tmp"
playbooks:
prepare: prepare.yml

View file

@ -0,0 +1,20 @@
---
- name: Prepare
hosts: all
tasks:
- name: Install docker python module
pip:
name: docker
- name: Create a dummy gitea config directory
file:
path: "{{ item }}"
state: directory
recurse: yes
with_items:
- "{{ gitea_data_directory }}/gitea/gitea/conf"
- name: Create a dummy gitea config file
file:
path: "{{ gitea_data_directory }}/gitea/gitea/conf/app.ini"
state: touch