Add Gitea up check before deploying configs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d91d332af9
commit
b4f6538ffe
@ -68,7 +68,10 @@
|
||||
owner: factorio
|
||||
group: factorio
|
||||
mode: u=rwx,g=,o=
|
||||
- name: Set up docker stuff
|
||||
# Since some docker-compose configuration might want to pull
|
||||
# images from the Gitea package repository, we need to ensure
|
||||
# that Gitea is reachable before those configurations are deployed.
|
||||
- name: Set up caddy and gitea containers
|
||||
become: true
|
||||
docker_compose:
|
||||
project_src: "/etc/pbri/docker/{{ item.name }}"
|
||||
@ -80,6 +83,24 @@
|
||||
state: present
|
||||
- name: gitea
|
||||
state: present
|
||||
# Before deploying the remaining configs below, we check that
|
||||
# Gitea is reachable at git.pbrinkmeier.de
|
||||
- name: Wait for gitea to be reachable
|
||||
ansible.builtin.uri:
|
||||
method: GET
|
||||
url: https://git.pbrinkmeier.de/api/v1/version
|
||||
register: gitea_version_response
|
||||
until: gitea_version_response.status == 200
|
||||
retries: 10
|
||||
delay: 5 # Retry every 5 seconds
|
||||
- name: Set up other containers
|
||||
become: true
|
||||
docker_compose:
|
||||
project_src: "/etc/pbri/docker/{{ item.name }}"
|
||||
state: "{{ item.state }}"
|
||||
build: true
|
||||
debug: true
|
||||
loop:
|
||||
- name: drone
|
||||
state: present
|
||||
- name: codi
|
||||
|
Loading…
x
Reference in New Issue
Block a user