Actualiser .gitea/workflows/ci-main.yml
Some checks failed
Deployment Verification / deploy-and-test (push) Failing after 8s
Some checks failed
Deployment Verification / deploy-and-test (push) Failing after 8s
This commit is contained in:
parent
75f4fadba0
commit
c18be39c25
@ -22,7 +22,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create necessary Docker networks
|
- name: Create necessary Docker networks
|
||||||
run: |
|
run: |
|
||||||
docker network create back_network_{ vars.APPLICATION_NAME } || true
|
docker network create back_network || true
|
||||||
docker network create traefik_front_network || true
|
docker network create traefik_front_network || true
|
||||||
|
|
||||||
- name: Start up services using Docker Compose
|
- name: Start up services using Docker Compose
|
||||||
@ -30,7 +30,7 @@ jobs:
|
|||||||
|
|
||||||
# - name: Modify /etc/hosts for internal routing
|
# - name: Modify /etc/hosts for internal routing
|
||||||
# run: |
|
# run: |
|
||||||
# echo "127.0.0.1 { vars.APPLICATION_URL }" | sudo tee -a /etc/hosts
|
# echo "127.0.0.1 gitea.tips-of-mine.com" | sudo tee -a /etc/hosts
|
||||||
# echo "127.0.0.1 dashboard.tips-of-mine.com" | sudo tee -a /etc/hosts
|
# echo "127.0.0.1 dashboard.tips-of-mine.com" | sudo tee -a /etc/hosts
|
||||||
|
|
||||||
- name: Print Docker Compose services status
|
- name: Print Docker Compose services status
|
||||||
@ -39,11 +39,11 @@ jobs:
|
|||||||
- name: Wait for the application to be ready via Traefik
|
- name: Wait for the application to be ready via Traefik
|
||||||
run: |
|
run: |
|
||||||
echo "Checking the routing and availability of application via Traefik..."
|
echo "Checking the routing and availability of application via Traefik..."
|
||||||
timeout 5m bash -c 'while ! curl -fsSLk "https://{ vars.APPLICATION_URL }"; do echo "Waiting for the application to be ready..."; sleep 10; done'
|
timeout 5m bash -c 'while ! curl -fsSLk "https://gitea.tips-of-mine.com"; do echo "Waiting for the application to be ready..."; sleep 10; done'
|
||||||
|
|
||||||
- name: Inspect Network Configuration
|
- name: Inspect Network Configuration
|
||||||
run: |
|
run: |
|
||||||
docker network inspect back_network_{ vars.APPLICATION_NAME }
|
docker network inspect back_network
|
||||||
docker network inspect traefik_front_network
|
docker network inspect traefik_front_network
|
||||||
|
|
||||||
- name: Shutdown Docker Compose services
|
- name: Shutdown Docker Compose services
|
||||||
|
Loading…
x
Reference in New Issue
Block a user